| 1 |
// { dg-additional-options "-w" } |
| 2 |
|
| 3 |
const P: usize = 14; |
| 4 |
|
| 5 |
struct Foo<const N: usize = { M }>; // { dg-error "cannot find value .M. in this scope" } |
| 6 |
struct Bar<const N: usize = { P }>; |
| 7 |
struct Baz<const N: NotAType = { P }>; // { dg-error "could not resolve type path .NotAType." } |