]> git.lizzy.rs Git - rust.git/blob - src/test/ui/test-attr-non-associated-functions.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / test-attr-non-associated-functions.stderr
1 error: #[test] attribute is only allowed on non associated functions
2   --> $DIR/test-attr-non-associated-functions.rs:9:5
3    |
4 LL | /     fn new() -> A { //~ ERROR #[test] attribute is only allowed on non associated functions
5 LL | |         A {}
6 LL | |     }
7    | |_____^
8
9 error: aborting due to previous error
10