blob: 0a6e26acfc77f2d21c6740f68ae8d1af0be5f83d (
plain)
1
2
3
4
5
6
7
|
fn main() {}
type X<'a> = (?'a) +;
//~^ ERROR `?` may only modify trait bounds, not lifetime bounds
//~| ERROR at least one trait is required for an object type
//~| WARN trait objects without an explicit `dyn` are deprecated
//~| WARN this is accepted in the current edition
|