rust/src/test/ui/lub-glb/old-lub-glb-hr.stderr
Guillaume Gomez 2e104a77cf update tests
2018-03-14 00:53:24 +01:00

20 lines
748 B
Plaintext

error[E0308]: match arms have incompatible types
--> $DIR/old-lub-glb-hr.rs:18:13
|
LL | let z = match 22 { //~ ERROR incompatible types
| _____________^
LL | | 0 => x,
LL | | _ => y,
| | - match arm with an incompatible type
LL | | };
| |_____^ expected bound lifetime parameter, found concrete lifetime
|
= note: expected type `for<'r, 's> fn(&'r u8, &'s u8)`
found type `for<'a> fn(&'a u8, &'a u8)`
= note: this was previously accepted by the compiler but has been phased out
= note: for more information, see https://github.com/rust-lang/rust/issues/45852
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.