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