mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
11 lines
348 B
Plaintext
11 lines
348 B
Plaintext
error: generic parameters may not be used in const operations
|
|
--> $DIR/selftyparam.rs:5:37
|
|
|
|
|
LL | fn foo() -> [(); const { let _: Self; 1 }];
|
|
| ^^^^
|
|
|
|
|
= help: add `#![feature(generic_const_args)]` to allow generic expressions as the RHS of const items
|
|
|
|
error: aborting due to 1 previous error
|
|
|