about summary refs log tree commit diff
path: root/tests/ui/traits/maybe-polarity-repeated.rs
blob: 4b5ec83fffab0e79b3f200e9c3de811b9b3b787b (plain)
1
2
3
4
5
6
7
8
9
#![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() {}