rust/tests/ui/traits/non_lifetime_binders/foreach-partial-eq.rs
2023-06-19 02:52:03 +00:00

13 lines
232 B
Rust

#![feature(non_lifetime_binders)]
//~^ WARN the feature `non_lifetime_binders` is incomplete
fn auto_trait()
where
for<T> T: PartialEq + PartialOrd,
{}
fn main() {
auto_trait();
//~^ ERROR can't compare `T` with `T`
}