We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Minimal example:
trait Foo { type T; } #[derive(Copy)] struct PairFoo<F: Foo>(pub F::T, pub F::T); fn main() {}
rustc -Z unstable-options --pretty=expanded yields:
rustc -Z unstable-options --pretty=expanded
#![feature(no_std)] #![no_std] #[prelude_import] use std::prelude::v1::*; #[macro_use] extern crate "std" as std; trait Foo { type T; } struct PairFoo<F: Foo>(pub F::T, pub F::T); #[automatically_derived] impl <F: ::std::marker::Copy + Foo> ::std::marker::Copy for PairFoo<F> { } fn main() { }
This is wrong, because the bound shouldn't be F: Copy but <F as Foo>::T: Copy instead.
F: Copy
<F as Foo>::T: Copy
The text was updated successfully, but these errors were encountered:
Duplicate of #23575, whoopsies
Sorry, something went wrong.
No branches or pull requests
Minimal example:
rustc -Z unstable-options --pretty=expanded
yields:This is wrong, because the bound shouldn't be
F: Copy
but<F as Foo>::T: Copy
instead.The text was updated successfully, but these errors were encountered: