]>
Commit | Line | Data |
---|---|---|
94222f64 XL |
1 | // compile-flags: -Z deduplicate-diagnostics=yes |
2 | // edition:2018 | |
3 | ||
4 | mod hey { | |
5 | pub use Copy as Bla; | |
6 | pub use std::println as bla; | |
7 | } | |
8 | ||
9 | #[derive(Bla)] | |
10 | //~^ ERROR cannot find derive macro `Bla` | |
11 | //~| NOTE consider importing this derive macro | |
12 | struct A; | |
13 | ||
14 | #[derive(println)] | |
15 | //~^ ERROR cannot find derive macro `println` | |
16 | //~|`println` is in scope, but it is a function-like macro | |
17 | struct B; | |
18 | ||
19 | fn main() { | |
20 | bla!(); | |
21 | //~^ ERROR cannot find macro `bla` | |
22 | //~| NOTE consider importing this macro | |
23 | } |