]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/fn-arg-doc-comment.rs
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / parser / fn-arg-doc-comment.rs
index 4a4f959e21353ceab96d8cae4b7334fdb2c8757c..ad28c9d3dce34f0740c51adde856474c9f6a5dbf 100644 (file)
@@ -2,14 +2,10 @@ pub fn f(
     /// Comment
     //~^ ERROR documentation comments cannot be applied to function parameters
     //~| NOTE doc comments are not allowed here
-    //~| ERROR attributes on function parameters are unstable
-    //~| NOTE https://github.com/rust-lang/rust/issues/60406
     id: u8,
     /// Other
     //~^ ERROR documentation comments cannot be applied to function parameters
     //~| NOTE doc comments are not allowed here
-    //~| ERROR attributes on function parameters are unstable
-    //~| NOTE https://github.com/rust-lang/rust/issues/60406
     a: u8,
 ) {}
 
@@ -21,13 +17,10 @@ fn main() {
     // verify that the parser recovered and properly typechecked the args
     f("", "");
     //~^ ERROR mismatched types
-    //~| NOTE expected u8, found reference
-    //~| NOTE expected
+    //~| NOTE expected u8, found &str
     //~| ERROR mismatched types
-    //~| NOTE expected u8, found reference
-    //~| NOTE expected
+    //~| NOTE expected u8, found &str
     bar("");
     //~^ ERROR mismatched types
-    //~| NOTE expected i32, found reference
-    //~| NOTE expected
+    //~| NOTE expected i32, found &str
 }