]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0518.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0518.stderr
1 error[E0518]: attribute should be applied to function or closure
2   --> $DIR/E0518.rs:1:1
3    |
4 LL | #[inline(always)]
5    | ^^^^^^^^^^^^^^^^^
6 LL | struct Foo;
7    | ----------- not a function or closure
8
9 error[E0518]: attribute should be applied to function or closure
10   --> $DIR/E0518.rs:4:1
11    |
12 LL |   #[inline(never)]
13    |   ^^^^^^^^^^^^^^^^
14 LL | / impl Foo {
15 LL | | }
16    | |_- not a function or closure
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0518`.