Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
trait-bounds
/
shadowed-path-in-trait-bound-suggestion.fixed
blob: 6354676bb25b3c870deb695353b72c716fe5234c [
file
] [
log
] [
blame
]
//@ edition: 2015
//@ 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
);
}