2017-01-17 12:18:29 -06:00
|
|
|
// Empty predicate list is OK
|
2014-08-11 11:32:26 -05:00
|
|
|
fn equal1<T>(_: &T, _: &T) -> bool where {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
2017-01-17 12:18:29 -06:00
|
|
|
// Empty bound list is OK
|
2014-08-11 11:32:26 -05:00
|
|
|
fn equal2<T>(_: &T, _: &T) -> bool where T: {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
2016-10-19 10:21:27 -05:00
|
|
|
fn foo<'a>() where 'a {}
|
|
|
|
//~^ ERROR expected `:`, found `{`
|
|
|
|
|
2014-08-11 11:32:26 -05:00
|
|
|
fn main() {
|
|
|
|
}
|