about summary refs log tree commit diff
path: root/tests/ui/resolve/path-attr-in-const-block.stderr
blob: f3ae5b60c4fe86311bc5adb52f2d79e5cc1c59a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: cannot find macro `foo` in this scope
  --> $DIR/path-attr-in-const-block.rs:6:19
   |
LL |         #![path = foo!()]
   |                   ^^^

error[E0539]: malformed `path` attribute input
  --> $DIR/path-attr-in-const-block.rs:6:9
   |
LL |         #![path = foo!()]
   |         ^^^^^^^^^^------^
   |         |         |
   |         |         expected a string literal here
   |         help: must be of the form: `#[path = "file"]`
   |
   = note: for more information, visit <https://doc.rust-lang.org/reference/items/modules.html#the-path-attribute>

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0539`.