rust/tests/ui/associated-consts/associated-const-ufcs-infer-trait.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
137 B
Rust
Raw Normal View History

//@ run-pass
2015-03-26 19:06:26 +00:00
trait Foo {
const ID: i32;
}
impl Foo for i32 {
const ID: i32 = 1;
}
fn main() {
assert_eq!(1, <i32>::ID);
}