Sign in
fuchsia
/
third_party
/
rust
/
HEAD
/
.
/
tests
/
ui
/
specialization
/
defaultimpl
/
specialization-wfcheck.rs
blob: 51b63f034808bf165171a0bb725f02e0afb486c5 [
file
] [
log
] [
blame
]
// Tests that a default impl still has to have a WF trait ref.
#![
feature
(
specialization
)]
trait
Foo
<
'a, T: Eq + '
a
>
{
}
default
impl
<
U
>
Foo
<
'
static
,
U
>
for
()
{}
//~^ ERROR the trait bound `U: Eq` is not satisfied
fn
main
(){}