2024-07-26 16:33:30 +03:00
|
|
|
#![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
|
2025-01-21 09:17:40 +00:00
|
|
|
//~| ERROR relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
|
|
|
|
|
//~| ERROR relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
|
2024-07-26 16:33:30 +03:00
|
|
|
|
|
|
|
|
fn main() {}
|