Sign in
fuchsia
/
third_party
/
rust
/
d782f09ae0b88a73a69e2fa3169222cdbc47d4ec
/
.
/
src
/
test
/
ui
/
associated-const
/
associated-const-impl-wrong-type.rs
blob: 1aad749c1ebe29f42cf4d91a4b53e75f9abe058b [
file
] [
log
] [
blame
]
trait
Foo
{
const
BAR
:
u32
;
}
struct
SignedBar
;
impl
Foo
for
SignedBar
{
const
BAR
:
i32
=
-
1
;
//~^ ERROR implemented const `BAR` has an incompatible type for trait [E0326]
}
fn
main
()
{}