2019-03-17 21:18:06 -07:00
|
|
|
error[E0423]: expected value, found struct `Mod::Foo`
|
|
|
|
|
--> $DIR/assoc-const-as-field.rs:11:9
|
|
|
|
|
|
|
|
|
|
|
LL | foo(Mod::Foo.Bar);
|
2024-11-08 16:57:53 +00:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
help: use the path separator to refer to an item
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - foo(Mod::Foo.Bar);
|
|
|
|
|
LL + foo(Mod::Foo::Bar);
|
|
|
|
|
|
|
2019-03-17 21:18:06 -07:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2019-03-17 21:18:06 -07:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0423`.
|