]> git.lizzy.rs Git - rust.git/blob - tests/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.rs
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / ui / trait-bounds / shadowed-path-in-trait-bound-suggestion.rs
1 // run-rustfix
2 #![allow(non_snake_case)]
3 mod A {
4     pub trait Trait {}
5     impl Trait for i32 {}
6 }
7
8 mod B {
9     pub struct A<H: A::Trait>(pub H); //~ ERROR cannot find trait
10 }
11
12 fn main() {
13     let _ = B::A(42);
14 }