mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
10 lines
380 B
Plaintext
10 lines
380 B
Plaintext
error[E0770]: the type of const parameters must not depend on other generic parameters
|
|
--> $DIR/E0771.rs:3:41
|
|
|
|
|
LL | fn function_with_str<'a, const STRING: &'a str>() {}
|
|
| ^^ the type must not depend on the parameter `'a`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0770`.
|