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