rust/tests/ui/traits/non_lifetime_binders/foreach-partial-eq.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
232 B
Rust
Raw Normal View History

#![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`
}