Sign in
fuchsia
/
third_party
/
rust
/
57e8fc56852e7728d7160242bf13c3ab6e066bd8
/
.
/
src
/
test
/
ui
/
associated-const
/
associated-const-in-trait.rs
blob: cc3acd539562279c9bfcb7ed06afd6cbb920fb05 [
file
] [
log
] [
blame
]
// #29924
#![
feature
(
const_fn
,
associated_consts
)]
trait
Trait
{
const
N
:
usize
;
}
impl
dyn
Trait
{
//~^ ERROR the trait `Trait` cannot be made into an object [E0038]
const
fn
n
()
->
usize
{
Self
::
N
}
}
fn
main
()
{}