]> git.proxmox.com Git - rustc.git/blame - src/test/ui/macros/issue-88228.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / macros / issue-88228.rs
CommitLineData
94222f64
XL
1// compile-flags: -Z deduplicate-diagnostics=yes
2// edition:2018
3
4mod 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
12struct A;
13
14#[derive(println)]
15//~^ ERROR cannot find derive macro `println`
16//~|`println` is in scope, but it is a function-like macro
17struct B;
18
19fn main() {
20 bla!();
21 //~^ ERROR cannot find macro `bla`
22 //~| NOTE consider importing this macro
23}