Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
trait-bounds
/
shadowed-path-in-trait-bound-suggestion.rs
blob: d5c557dc9c7dcd0fd3d43d27db4acc59ce817f00 [
file
] [
log
] [
blame
] [
edit
]
//@ 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
);
}