blob: bc73e3d93575ec44325df4aeb6a90bca19a4c875 [file] [edit]
error: generic `Self` types are currently not permitted in anonymous constants
--> $DIR/double-inline-const.rs:7:35
|
LL | fn foo(_: S<{ const { const { Self::Q } } }>) {}
| ^^^^
|
note: not a concrete type
--> $DIR/double-inline-const.rs:5:22
|
LL | impl<const N: usize> S<N> {
| ^^^^
= help: add `#![feature(generic_const_args)]` to allow generic expressions as the RHS of const items
error: aborting due to 1 previous error