blob: d5bba941c1dd21fb040fca888f1af56de6415ce6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
A literal was used in a built-in attribute that doesn't support literals.
Erroneous code example:
```compile_fail,E0565
#[repr("C")] // error: meta item in `repr` must be an identifier
struct Repr {}
fn main() {}
```
Literals in attributes are new and largely unsupported in built-in attributes.
Work to support literals where appropriate is ongoing. Try using an unquoted
name instead:
```
#[repr(C)] // ok!
struct Repr {}
fn main() {}
```
|