diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-11-06 14:49:09 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-11-06 14:49:09 -0800 |
| commit | 3ec837e763ba423ddff0cdc886eba91f2836b6f8 (patch) | |
| tree | f4abe96b16fbf62eae5663ea45ae92438de5e05d /src/test | |
| parent | ca4fa6f567b5d8a01f7db864539a43457119a45c (diff) | |
| download | rust-3ec837e763ba423ddff0cdc886eba91f2836b6f8.tar.gz rust-3ec837e763ba423ddff0cdc886eba91f2836b6f8.zip | |
Elide anon lifetimes in conflicting impl note
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/coherence/coherence-impls-copy.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/e0119/issue-28981.stderr | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/coherence/coherence-impls-copy.stderr b/src/test/ui/coherence/coherence-impls-copy.stderr index 613ee0a269e..dc417957795 100644 --- a/src/test/ui/coherence/coherence-impls-copy.stderr +++ b/src/test/ui/coherence/coherence-impls-copy.stderr @@ -14,7 +14,7 @@ LL | impl Copy for &'static NotSync {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: conflicting implementation in crate `core`: - - impl<'_, T> std::marker::Copy for &T + - impl<T> std::marker::Copy for &T where T: ?Sized; error[E0119]: conflicting implementations of trait `std::marker::Copy` for type `&[NotSync]`: @@ -24,7 +24,7 @@ LL | impl Copy for &'static [NotSync] {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: conflicting implementation in crate `core`: - - impl<'_, T> std::marker::Copy for &T + - impl<T> std::marker::Copy for &T where T: ?Sized; error[E0206]: the trait `Copy` may not be implemented for this type diff --git a/src/test/ui/e0119/issue-28981.stderr b/src/test/ui/e0119/issue-28981.stderr index 4886ad77175..76ff88d6cc6 100644 --- a/src/test/ui/e0119/issue-28981.stderr +++ b/src/test/ui/e0119/issue-28981.stderr @@ -5,7 +5,7 @@ LL | impl<Foo> Deref for Foo { } //~ ERROR must be used | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: conflicting implementation in crate `core`: - - impl<'_, T> std::ops::Deref for &T + - impl<T> std::ops::Deref for &T where T: ?Sized; error[E0210]: type parameter `Foo` must be used as the type parameter for some local type (e.g. `MyStruct<Foo>`) |
