-
Notifications
You must be signed in to change notification settings - Fork 1.6k
ICE while checking RA proc_macro_srv: associated type missing default #6793
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
Comments
Reproducer of the issue. trait Trait {
type Ty: 'static + Clone;
fn foo() -> Self::Ty;
}
#[derive(Clone)]
struct MyType {
x: i32,
}
impl Trait for MyType {
type Ty = MyType;
fn foo() -> Self::Ty {
Self::Ty { x: 1 }
}
} gives
BackTrace
|
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Meta
clippy v: clippy 0.1.52 (98f8cce 2021-02-25)
rustc v
Error output
Backtrace
The text was updated successfully, but these errors were encountered: