]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/use_suggestion_placement.rs
Rollup merge of #80327 - PankajChaudhary5:PankajChaudhary, r=GuillaumeGomez
[rust.git] / src / test / ui / resolve / use_suggestion_placement.rs
1 macro_rules! y {
2     () => {}
3 }
4
5 mod m {
6     pub const A: i32 = 0;
7 }
8
9 mod foo {
10     #[derive(Debug)]
11     pub struct Foo;
12
13     // test whether the use suggestion isn't
14     // placed into the expansion of `#[derive(Debug)]
15     type Bar = Path; //~ ERROR cannot find
16 }
17
18 fn main() {
19     y!();
20     let _ = A; //~ ERROR cannot find
21     foo();
22 }
23
24 fn foo() {
25     type Dict<K, V> = HashMap<K, V>; //~ ERROR cannot find
26 }