blob: 958a86cbde8b4550b6a85d186276c48bd28764c6 [file]
// Regression test for ICE https://github.com/rust-lang/rust/issues/149954
//@ edition: 2024
enum A {
A
const A: A = { //~ ERROR expected one of `(`, `,`, `=`, `{`, or `}`, found keyword `const`
#[derive(Debug)]
struct A
where
A: A<{ struct A<A: A<{ #[cfg] () }>> ; enum A }
//~^ ERROR malformed `cfg` attribute input
//~| ERROR malformed `cfg` attribute input
//~| ERROR expected trait, found struct `A`
//~| ERROR expected trait, found type parameter `A`
//~| ERROR expected trait, found struct `A`
//~| ERROR expected trait, found type parameter `A`
//~| ERROR expected one of `<`, `where`, or `{`, found `}`
//~| ERROR expected one of `<`, `where`, or `{`, found `}`
//~| ERROR expected one of `,`, `>`, or `}`, found `<eof>`
}
>;
}; //~ ERROR `main` function not found in crate