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
I noticed error output like the following in the ui tests of #54687.
error[E0119]: conflicting implementations of trait `std::marker::Copy` for type `&NotSync`: --> $DIR/coherence-impls-copy.rs:41:1 | | impl Copy for &'static NotSync {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: conflicting implementation in crate `core`: - impl<'_, T> std::marker::Copy for &T where T: ?Sized;
The impl<'_, T> is not valid syntax. The error message should use impl<T>.
impl<'_, T>
impl<T>
The text was updated successfully, but these errors were encountered:
In case it helps, this doesn't seem to happen inside a single module:
trait Trait {} impl Trait for &() {} impl Trait for &'static () {}
error[E0119]: conflicting implementations of trait `Trait` for type `&()`: --> src/lib.rs:3:1 | 2 | impl Trait for &() {} | ------------------ first implementation here 3 | impl Trait for &'static () {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `&()`
Also, cc the impl_header_lifetime_elision tracking issue: #15872
impl_header_lifetime_elision
Sorry, something went wrong.
Look like this affects rustdoc too:
impl<'_, T> Borrow<T> for &'_ T
https://doc.rust-lang.org/nightly/std/borrow/trait.Borrow.html#impl-Borrow%3CT%3E
Rollup merge of rust-lang#55736 - estebank:elide-anon-lt, r=petrochenkov
4feb4f9
Elide anon lifetimes in conflicting impl note Fix rust-lang#54690.
e873984
No branches or pull requests
I noticed error output like the following in the ui tests of #54687.
The
impl<'_, T>
is not valid syntax. The error message should useimpl<T>
.The text was updated successfully, but these errors were encountered: