]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gate/issue-43106-gating-of-inline.stderr
ill_formed_attribute_input -> deny
[rust.git] / src / test / ui / feature-gate / issue-43106-gating-of-inline.stderr
1 error: attribute must be of the form `#[inline]` or `#[inline(always|never)]`
2   --> $DIR/issue-43106-gating-of-inline.rs:17:5
3    |
4 LL |     #[inline = "2100"] fn f() { }
5    |     ^^^^^^^^^^^^^^^^^^
6    |
7    = note: `#[deny(ill_formed_attribute_input)]` on by default
8    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9    = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
10
11 error[E0518]: attribute should be applied to function or closure
12   --> $DIR/issue-43106-gating-of-inline.rs:11:1
13    |
14 LL |   #[inline]
15    |   ^^^^^^^^^
16 LL |
17 LL | / mod inline {
18 LL | |     mod inner { #![inline] }
19 LL | |
20 LL | |
21 ...  |
22 LL | |
23 LL | | }
24    | |_- not a function or closure
25
26 error[E0518]: attribute should be applied to function or closure
27   --> $DIR/issue-43106-gating-of-inline.rs:14:17
28    |
29 LL |     mod inner { #![inline] }
30    |     ------------^^^^^^^^^^-- not a function or closure
31
32 error[E0518]: attribute should be applied to function or closure
33   --> $DIR/issue-43106-gating-of-inline.rs:21:5
34    |
35 LL |     #[inline] struct S;
36    |     ^^^^^^^^^ --------- not a function or closure
37
38 error[E0518]: attribute should be applied to function or closure
39   --> $DIR/issue-43106-gating-of-inline.rs:24:5
40    |
41 LL |     #[inline] type T = S;
42    |     ^^^^^^^^^ ----------- not a function or closure
43
44 error[E0518]: attribute should be applied to function or closure
45   --> $DIR/issue-43106-gating-of-inline.rs:27:5
46    |
47 LL |     #[inline] impl S { }
48    |     ^^^^^^^^^ ---------- not a function or closure
49
50 error: aborting due to 6 previous errors
51
52 For more information about this error, try `rustc --explain E0518`.