]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/assoc-const-as-field.rs
Rollup merge of #59432 - phansch:compiletest_docs, r=alexcrichton
[rust.git] / src / test / ui / suggestions / assoc-const-as-field.rs
1 pub mod Mod {
2     pub struct Foo {}
3     impl Foo {
4         pub const BAR: usize = 42;
5     }
6 }
7
8 fn foo(_: usize) {}
9
10 fn main() {
11     foo(Mod::Foo.Bar);
12     //~^ ERROR expected value, found
13 }