-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
struct Foo<const BAR: usize> {
foobar: &i32
}On nightly 2021-08-06 the compiler suggests
help: consider introducing a named lifetime parameter
|
1 | struct Foo<const 'a, BAR: usize> {
2 | foobar: &'a i32
|
The const 'a, BAR: usize has the 'a inserted at the wrong place. It should be
help: consider introducing a named lifetime parameter
|
1 | struct Foo<'a, const BAR: usize> {
2 | foobar: &'a i32
|
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.