rust/tests/ui/suggestions/assoc-const-as-field.rs

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

14 lines
190 B
Rust
Raw Normal View History

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
}