-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Closed
Labels
A-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`Area: Suggestions generated by the compiler applied by `cargo fix`E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Description
trait Trait {}
fn f<'a, T: Trait + ('a)>() {}
suggest the correct syntax
error: parenthesized lifetime bounds are not supported
--> $DIR/trait-object-lifetime-parens.rs:5:24
|
LL | fn f<'a, T: Trait + ('a)>() {}
| ^
help: remove the braces
|
LL | fn f<'a, T: Trait + 'a>() {}
| ^^
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`Area: Suggestions generated by the compiler applied by `cargo fix`E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.