about summary refs log tree commit diff
path: root/tests/ui/deprecation/issue-66340-deprecated-attr-non-meta-grammar.stderr
blob: cd985ab5a182422eb2529e1c36822da0c7062dd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found `test`
  --> $DIR/issue-66340-deprecated-attr-non-meta-grammar.rs:9:21
   |
LL | #[deprecated(note = test)]
   |                     ^^^^
   |
help: surround the identifier with quotation marks to make it into a string literal
   |
LL | #[deprecated(note = "test")]
   |                     +    +

error: aborting due to 1 previous error