Files
rust/tests/ui/specialization/defaultimpl/specialization-wfcheck.rs
T
2026-03-24 20:00:26 +00:00

11 lines
231 B
Rust

// 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(){}