mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
10 lines
408 B
Rust
10 lines
408 B
Rust
#![feature(more_maybe_bounds)]
|
|
|
|
trait Trait {}
|
|
fn foo<T: ?Trait + ?Trait>(_: T) {}
|
|
//~^ ERROR type parameter has more than one relaxed default bound, only one is supported
|
|
//~| WARN relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
|
|
//~| WARN relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
|
|
|
|
fn main() {}
|