fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
516 B20 linesraw
1error[E0518]: attribute should be applied to function or closure
2  --> $DIR/E0518.rs:1:1
3   |
4LL | #[inline(always)]
5   | ^^^^^^^^^^^^^^^^^
6LL | struct Foo;
7   | ----------- not a function or closure
8
9error[E0518]: attribute should be applied to function or closure
10  --> $DIR/E0518.rs:4:1
11   |
12LL |   #[inline(never)]
13   |   ^^^^^^^^^^^^^^^^
14LL | / impl Foo {
15LL | | }
16   | |_- not a function or closure
17
18error: aborting due to 2 previous errors
19
20For more information about this error, try `rustc --explain E0518`.