Skip to content

Commit a2d9179

Browse files
committed
WIP other test changes
1 parent c8e0a90 commit a2d9179

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

src/test/ui/coherence/coherence-subtyping.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0119]: conflicting implementations of trait `Contravariant` for type `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`:
2-
--> $DIR/coherence-subtyping.rs:21:1
2+
--> $DIR/coherence-subtyping.rs:11:1
33
|
44
LL | impl Contravariant for for<'a,'b> fn(&'a u8, &'b u8) -> &'a u8 {
55
| -------------------------------------------------------------- first implementation here
@@ -8,7 +8,7 @@ LL | impl Contravariant for for<'a> fn(&'a u8, &'a u8) -> &'a u8 {
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`
99

1010
error[E0119]: conflicting implementations of trait `Covariant` for type `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`:
11-
--> $DIR/coherence-subtyping.rs:34:1
11+
--> $DIR/coherence-subtyping.rs:24:1
1212
|
1313
LL | impl Covariant for for<'a,'b> fn(&'a u8, &'b u8) -> &'a u8 {
1414
| ---------------------------------------------------------- first implementation here
@@ -17,7 +17,7 @@ LL | impl Covariant for for<'a> fn(&'a u8, &'a u8) -> &'a u8 {
1717
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`
1818

1919
error[E0119]: conflicting implementations of trait `Invariant` for type `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`:
20-
--> $DIR/coherence-subtyping.rs:47:1
20+
--> $DIR/coherence-subtyping.rs:37:1
2121
|
2222
LL | impl Invariant for for<'a,'b> fn(&'a u8, &'b u8) -> &'a u8 {
2323
| ---------------------------------------------------------- first implementation here

src/test/ui/hr-subtype/hr-subtype.bound_a_vs_free_x.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ LL | | fn(&'x u32)) }
1111
= note: expected type `std::option::Option<for<'a> fn(&'a u32)>`
1212
found type `std::option::Option<fn(&'x u32)>`
1313
= note: lifetime RePlaceholder(Placeholder { universe: U1, name: BrNamed(crate0:DefIndex(1:23), 'a) })...
14-
note: ...does not necessarily outlive the lifetime 'x as defined on the function body at 48:22
15-
--> $DIR/hr-subtype.rs:48:22
14+
note: ...does not necessarily outlive the lifetime 'x as defined on the function body at 38:22
15+
--> $DIR/hr-subtype.rs:38:22
1616
|
1717
LL | fn supertype<'x,'y:'x,'z:'y>() {
1818
| ^^

src/test/ui/issues/issue-22872.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pub trait Process<'a> {
1919
fn push_process<P>(process: P) where P: Process<'static> {
2020
let _: Box<for<'b> Wrap<'b>> = Box::new(Wrapper(process));
2121
//~^ ERROR is not an iterator
22-
//~| ERROR is not satisfied
2322
}
2423

2524
fn main() {}

src/test/ui/lub-glb/old-lub-glb-object.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0308]: match arms have incompatible types
1+
error[E0495]: cannot infer an appropriate lifetime for lifetime parameter 'a in generic type due to conflicting requirements
22
--> $DIR/old-lub-glb-object.rs:10:13
33
|
44
LL | let z = match 22 { //~ ERROR cannot infer

0 commit comments

Comments
 (0)