rust/tests/ui/parser/where-clauses-no-bounds-or-predicates.rs

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

16 lines
244 B
Rust
Raw Normal View History

// Empty predicate list is OK
fn equal1<T>(_: &T, _: &T) -> bool where {
true
}
// Empty bound list is OK
fn equal2<T>(_: &T, _: &T) -> bool where T: {
true
}
fn foo<'a>() where 'a {}
//~^ ERROR expected `:`, found `{`
fn main() {
}