fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
514 B35 linesraw
1// run-rustfix
2#![allow(dead_code)]
3
4use m::A;
5
6use std::collections::HashMap;
7
8macro_rules! y {
9    () => {}
10}
11
12mod m {
13    pub const A: i32 = 0;
14}
15
16mod foo {
17    use std::path::Path;
18
19#[derive(Debug)]
20    pub struct Foo;
21
22    // test whether the use suggestion isn't
23    // placed into the expansion of `#[derive(Debug)]
24    type Bar = Path; //~ ERROR cannot find
25}
26
27fn main() {
28    y!();
29    let _ = A; //~ ERROR cannot find
30    foo();
31}
32
33fn foo() {
34    type Dict<K, V> = HashMap<K, V>; //~ ERROR cannot find
35}