]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/where-clauses-no-bounds-or-predicates.rs
Rollup merge of #57357 - frewsxcv:frewsxcv-partial-eq, r=QuietMisdreavus
[rust.git] / src / test / ui / parser / where-clauses-no-bounds-or-predicates.rs
1 // compile-flags: -Z continue-parse-after-error
2
3 // Empty predicate list is OK
4 fn equal1<T>(_: &T, _: &T) -> bool where {
5     true
6 }
7
8 // Empty bound list is OK
9 fn equal2<T>(_: &T, _: &T) -> bool where T: {
10     true
11 }
12
13 fn foo<'a>() where 'a {}
14 //~^ ERROR expected `:`, found `{`
15
16 fn main() {
17 }