Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
ab1f382ca8fa4a4c0dde58679207f9bec394fa0e
/
.
/
tests
/
ui
/
error-codes
/
E0271.rs
blob: f27190754348aad42822f9d2d830ed6688b2af10 [
file
] [
log
] [
blame
]
trait
Trait
{
type
AssociatedType
;
}
fn
foo
<
T
>(
t
:
T
)
where T
:
Trait
<
AssociatedType
=
u32
>
{
println
!(
"in foo"
);
}
impl
Trait
for
i8
{
type
AssociatedType
=
&
'
static
str
;
}
fn
main
()
{
foo
(
3
_i8
);
//~ ERROR E0271
}