mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
11 lines
144 B
Rust
11 lines
144 B
Rust
trait Foo {
|
|
const ID: i32;
|
|
}
|
|
|
|
const X: i32 = <i32>::ID;
|
|
//~^ ERROR no associated item named `ID` found
|
|
|
|
fn main() {
|
|
assert_eq!(1, X);
|
|
}
|