Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
trait-bounds
/
shadowed-path-in-trait-bound-suggestion.fixed
blob: 39e90d7a3f786d32b65dc0f77cc98078883bec74 [
file
] [
log
] [
blame
]
// 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
);
}