rust/tests/ui/attributes/inline/attr-usage-inline.stderr
许杰友 Jieyou Xu (Joe) 7424b898e9 Adjust tests/ui/attr-usage-inline.rs
- Move `tests/ui/attr-usage-inline.rs` to `tests/ui/attributes/inline/`.
- Briefly document test intent.
- Drop unnecessary `#[allow(dead_code)]` as this is allowed-by-default
  for ui test suite.
2024-12-17 19:57:42 +08:00

18 lines
467 B
Plaintext

error[E0518]: attribute should be applied to function or closure
--> $DIR/attr-usage-inline.rs:7: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:21: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`.