]> git.lizzy.rs Git - rust.git/blob - tests/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.fixed
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / ui / trait-bounds / shadowed-path-in-trait-bound-suggestion.fixed
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     use A::Trait;
10
11 pub struct A<H: Trait>(pub H); //~ ERROR cannot find trait
12 }
13
14 fn main() {
15     let _ = B::A(42);
16 }