]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/check-doc-alias-attr-location.rs
Rollup merge of #82259 - osa1:issue82156, r=petrochenkov
[rust.git] / src / test / ui / check-doc-alias-attr-location.rs
index 3a0436e468d11a0d32f406cf50f3a5af5c09d723..007d2ae6506d7864a5b276224753059c73d43b32 100644 (file)
@@ -7,7 +7,7 @@ pub trait Foo {
 }
 
 #[doc(alias = "foo")] //~ ERROR
-extern {}
+extern "C" {}
 
 #[doc(alias = "bar")] //~ ERROR
 impl Bar {
@@ -19,5 +19,7 @@ impl Bar {
 impl Foo for Bar {
     #[doc(alias = "assoc")] //~ ERROR
     type X = i32;
-    fn foo() -> Self::X { 0 }
+    fn foo() -> Self::X {
+        0
+    }
 }