]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/deprecation/deprecation-in-staged-api.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / deprecation / deprecation-in-staged-api.stderr
index c6881d5a5735f39b3be48b70863276a412c2df93..cf977fa4b7b44d1293a4506f9050a4bdd756e531 100644 (file)
@@ -1,8 +1,10 @@
-error: `#[deprecated]` cannot be used in staged API; use `#[rustc_deprecated]` instead
-  --> $DIR/deprecation-in-staged-api.rs:8:1
+error: `#[deprecated]` cannot be used in staged API
+  --> $DIR/deprecation-in-staged-api.rs:3:1
    |
-LL | fn main() { }
-   | ^^^^^^^^^^^^^
+LL | #[deprecated]
+   | ^^^^^^^^^^^^^ use `#[rustc_deprecated]` instead
+LL | fn main() {}
+   | ------------
 
 error: aborting due to previous error