summaryrefslogtreecommitdiffstats
path: root/src/test/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.fixed
blob: 39e90d7a3f786d32b65dc0f77cc98078883bec74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// run-rustfix
#![allow(non_snake_case)]
mod A {
    pub trait Trait {}
    impl Trait for i32 {}
}

mod B {
    use A::Trait;

pub struct A<H: Trait>(pub H); //~ ERROR cannot find trait
}

fn main() {
    let _ = B::A(42);
}