gcc/testsuite/rust/compile/const_generics_2.rs
raw| 1 | struct Foo<const N>; // { dg-error "expecting .:. but .>. found" } |
| 2 | struct Bar<const N: >; // { dg-error "unrecognised token .>. in type" } |
| 3 | struct Baz<const N: usize = >; // { dg-error "invalid token for start of default value for const generic parameter" } |
| 4 | // { dg-error "unrecognised token .>. in type" "" { target *-*-* } .-1 } |