]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0565.md
Rollup merge of #66576 - pnkfelix:more-robust-gdb-vec-printer, r=alexcrichton
[rust.git] / src / librustc_error_codes / error_codes / E0565.md
1 A literal was used in a built-in attribute that doesn't support literals.
2
3 Erroneous code example:
4
5 ```ignore (compile_fail not working here; see Issue #43707)
6 #[inline("always")] // error: unsupported literal
7 pub fn something() {}
8 ```
9
10 Literals in attributes are new and largely unsupported in built-in attributes.
11 Work to support literals where appropriate is ongoing. Try using an unquoted
12 name instead:
13
14 ```
15 #[inline(always)]
16 pub fn something() {}
17 ```