mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 15:13:48 +00:00
16 lines
244 B
Rust
16 lines
244 B
Rust
// 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() {
|
|
}
|