8bbb2d057d
Add visitors for checking #[inline] Add visitors for checking #[inline] with struct field Fix test for #[inline] Add visitors for checking #[inline] with #[macro_export] macro Add visitors for checking #[inline] without #[macro_export] macro Add use alias with Visitor Fix lint error Reduce unnecessary variable Co-authored-by: LingMan <LingMan@users.noreply.github.com> Change error to warning Add warning for checking field, arm with #[allow_internal_unstable] Add name resolver Formatting Formatting Fix error fixture Add checking field, arm, macro def
18 lines
467 B
Plaintext
18 lines
467 B
Plaintext
error[E0518]: attribute should be applied to function or closure
|
|
--> $DIR/attr-usage-inline.rs:6:1
|
|
|
|
|
LL | #[inline]
|
|
| ^^^^^^^^^
|
|
LL | struct S;
|
|
| --------- not a function or closure
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
|
--> $DIR/attr-usage-inline.rs:20:1
|
|
|
|
|
LL | #[inline]
|
|
| ^^^^^^^^^ not a function or closure
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0518`.
|