Skip to content

Commit 8d6bee3

Browse files
committed
UI test updates
1 parent 0a3bd9b commit 8d6bee3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/ui/coherence/coherence-impls-copy.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ LL | impl Copy for &'static NotSync {}
1414
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1515
|
1616
= note: conflicting implementation in crate `core`:
17-
- impl<'a, T> std::marker::Copy for &'a T
17+
- impl<'_, T> std::marker::Copy for &T
1818
where T: ?Sized;
1919

2020
error[E0119]: conflicting implementations of trait `std::marker::Copy` for type `&[NotSync]`:
@@ -24,7 +24,7 @@ LL | impl Copy for &'static [NotSync] {}
2424
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2525
|
2626
= note: conflicting implementation in crate `core`:
27-
- impl<'a, T> std::marker::Copy for &'a T
27+
- impl<'_, T> std::marker::Copy for &T
2828
where T: ?Sized;
2929

3030
error[E0206]: the trait `Copy` may not be implemented for this type

src/test/ui/e0119/issue-28981.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | impl<Foo> Deref for Foo { } //~ ERROR must be used
55
| ^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: conflicting implementation in crate `core`:
8-
- impl<'a, T> std::ops::Deref for &'a T
8+
- impl<'_, T> std::ops::Deref for &T
99
where T: ?Sized;
1010

1111
error[E0210]: type parameter `Foo` must be used as the type parameter for some local type (e.g. `MyStruct<Foo>`)

0 commit comments

Comments
 (0)