2022-11-09 10:05:38 -06:00
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
|
|
struct Apple((Apple, Option(Banana ? Citron)));
|
|
|
|
|
//~^ ERROR invalid `?` in type
|
|
|
|
|
//~| ERROR expected one of `)` or `,`, found `Citron`
|
|
|
|
|
//~| ERROR cannot find type `Citron` in this scope [E0412]
|
|
|
|
|
//~| ERROR parenthesized type parameters may only be used with a `Fn` trait [E0214]
|
2024-05-28 11:38:30 +00:00
|
|
|
//~| ERROR `Apple` has infinite size
|