summary refs log tree commit diff
path: root/tests/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.rs
blob: c3b3a00aa6dd0401e048f438ed3163f2608bae49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ edition: 2015
//@ run-rustfix
#![allow(non_snake_case)]
mod A {
    pub trait Trait {}
    impl Trait for i32 {}
}

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

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