]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/fn-arg-doc-comment.rs
1 pub fn f( //~ NOTE function defined here
3 //~^ ERROR documentation comments cannot be applied to function parameters
4 //~| NOTE doc comments are not allowed here
8 //~^ ERROR documentation comments cannot be applied to function parameters
9 //~| NOTE doc comments are not allowed here
14 fn bar(id
: #[allow(dead_code)] i32) {}
15 //~^ ERROR attributes cannot be applied to a function parameter's type
16 //~| NOTE attributes are not allowed here
17 //~| NOTE function defined here
21 // verify that the parser recovered and properly typechecked the args
23 //~^ ERROR arguments to this function are incorrect
24 //~| NOTE expected `u8`, found `&str`
25 //~| NOTE expected `u8`, found `&str`
27 //~^ ERROR mismatched types
28 //~| NOTE arguments to this function are incorrect
29 //~| NOTE expected `i32`, found `&str`