]> git.lizzy.rs Git - rust.git/blob - src/test/ui/gated-attr-literals.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / gated-attr-literals.stderr
1 error[E0658]: non-string literals in attributes, or string literals in top-level positions, are experimental (see issue #34981)
2   --> $DIR/gated-attr-literals.rs:18:1
3    |
4 LL | #[fake_attr(100)]
5    | ^^^^^^^^^^^^^^^^^
6    |
7    = help: add #![feature(attr_literals)] to the crate attributes to enable
8
9 error[E0658]: non-string literals in attributes, or string literals in top-level positions, are experimental (see issue #34981)
10   --> $DIR/gated-attr-literals.rs:20:1
11    |
12 LL | #[fake_attr(1, 2, 3)]
13    | ^^^^^^^^^^^^^^^^^^^^^
14    |
15    = help: add #![feature(attr_literals)] to the crate attributes to enable
16
17 error[E0658]: non-string literals in attributes, or string literals in top-level positions, are experimental (see issue #34981)
18   --> $DIR/gated-attr-literals.rs:22:1
19    |
20 LL | #[fake_attr("hello")]
21    | ^^^^^^^^^^^^^^^^^^^^^
22    |
23    = help: add #![feature(attr_literals)] to the crate attributes to enable
24
25 error[E0658]: non-string literals in attributes, or string literals in top-level positions, are experimental (see issue #34981)
26   --> $DIR/gated-attr-literals.rs:25:1
27    |
28 LL | #[fake_attr(1, "hi", key = 12, true, false)]
29    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30    |
31    = help: add #![feature(attr_literals)] to the crate attributes to enable
32
33 error[E0658]: non-string literals in attributes, or string literals in top-level positions, are experimental (see issue #34981)
34   --> $DIR/gated-attr-literals.rs:27:1
35    |
36 LL | #[fake_attr(key = "hello", val = 10)]
37    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38    |
39    = help: add #![feature(attr_literals)] to the crate attributes to enable
40
41 error[E0658]: non-string literals in attributes, or string literals in top-level positions, are experimental (see issue #34981)
42   --> $DIR/gated-attr-literals.rs:29:1
43    |
44 LL | #[fake_attr(key("hello"), val(10))]
45    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46    |
47    = help: add #![feature(attr_literals)] to the crate attributes to enable
48
49 error[E0658]: non-string literals in attributes, or string literals in top-level positions, are experimental (see issue #34981)
50   --> $DIR/gated-attr-literals.rs:31:1
51    |
52 LL | #[fake_attr(enabled = true, disabled = false)]
53    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54    |
55    = help: add #![feature(attr_literals)] to the crate attributes to enable
56
57 error[E0658]: non-string literals in attributes, or string literals in top-level positions, are experimental (see issue #34981)
58   --> $DIR/gated-attr-literals.rs:33:1
59    |
60 LL | #[fake_attr(true)]
61    | ^^^^^^^^^^^^^^^^^^
62    |
63    = help: add #![feature(attr_literals)] to the crate attributes to enable
64
65 error[E0658]: non-string literals in attributes, or string literals in top-level positions, are experimental (see issue #34981)
66   --> $DIR/gated-attr-literals.rs:35:1
67    |
68 LL | #[fake_attr(pi = 3.14159)]
69    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
70    |
71    = help: add #![feature(attr_literals)] to the crate attributes to enable
72
73 error[E0658]: non-string literals in attributes, or string literals in top-level positions, are experimental (see issue #34981)
74   --> $DIR/gated-attr-literals.rs:37:1
75    |
76 LL | #[fake_attr(b"hi")]
77    | ^^^^^^^^^^^^^^^^^^^
78    |
79    = help: add #![feature(attr_literals)] to the crate attributes to enable
80
81 error[E0658]: non-string literals in attributes, or string literals in top-level positions, are experimental (see issue #34981)
82   --> $DIR/gated-attr-literals.rs:39:1
83    |
84 LL | #[fake_doc(r"doc")]
85    | ^^^^^^^^^^^^^^^^^^^
86    |
87    = help: add #![feature(attr_literals)] to the crate attributes to enable
88
89 error: aborting due to 11 previous errors
90
91 For more information about this error, try `rustc --explain E0658`.