]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/where-clauses-no-bounds-or-predicates.rs
Account for ADT bodies and struct expressions
[rust.git] / src / test / ui / parser / where-clauses-no-bounds-or-predicates.rs
1 // Empty predicate list is OK
2 fn equal1<T>(_: &T, _: &T) -> bool where {
3     true
4 }
5
6 // Empty bound list is OK
7 fn equal2<T>(_: &T, _: &T) -> bool where T: {
8     true
9 }
10
11 fn foo<'a>() where 'a {}
12 //~^ ERROR expected `:`, found `{`
13
14 fn main() {
15 }