mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
14 lines
190 B
Rust
14 lines
190 B
Rust
pub mod Mod {
|
|
pub struct Foo {}
|
|
impl Foo {
|
|
pub const BAR: usize = 42;
|
|
}
|
|
}
|
|
|
|
fn foo(_: usize) {}
|
|
|
|
fn main() {
|
|
foo(Mod::Foo.Bar);
|
|
//~^ ERROR expected value, found
|
|
}
|