-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Detect borrow checker errors where .clone()
would be an appropriate user action
#122603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5eb573a
ccae456
fa2fc3a
bce7810
10c2fbe
065454d
01b810e
259348c
5a7caa3
7f7f679
a1a3abb
b83ebea
dfe28de
4ca876b
d578ac9
d97d2fe
3cdc689
dea9b50
4c7213c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ | |
// fn body, causing this (invalid) code to be accepted. | ||
|
||
pub trait Foo<'a> { | ||
type Bar; | ||
type Bar: Clone; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So that the suggestion |
||
} | ||
|
||
impl<'a, T:'a> Foo<'a> for T { | ||
impl<'a, T: 'a> Foo<'a> for T { | ||
type Bar = &'a T; | ||
} | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.