]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/attr-usage-inline.stderr
Rollup merge of #82259 - osa1:issue82156, r=petrochenkov
[rust.git] / src / test / ui / attr-usage-inline.stderr
index d8d7f6adb82b55a3dc5983eb3fd1a96567bbeeee..22a0bf47e202676fdd3d2ea849096268cd24870d 100644 (file)
@@ -6,6 +6,12 @@ LL | #[inline]
 LL | struct S;
    | --------- not a function or closure
 
-error: aborting due to previous error
+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`.