Files
rust/tests/ui/const-generics/issues/issue-56445-1.min.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
375 B
Plaintext
Raw Normal View History

2023-05-05 21:42:51 +01:00
error[E0770]: the type of const parameters must not depend on other generic parameters
--> $DIR/issue-56445-1.rs:9:26
|
LL | struct Bug<'a, const S: &'a str>(PhantomData<&'a ()>);
2023-05-05 21:42:51 +01:00
| ^^ the type must not depend on the parameter `'a`
error: aborting due to 1 previous error
2023-05-05 21:42:51 +01:00
For more information about this error, try `rustc --explain E0770`.