]> git.lizzy.rs Git - rust.git/blob - src/test/ui/defaulted-never-note.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / defaulted-never-note.stderr
1 error[E0277]: the trait bound `!: ImplementedForUnitButNotNever` is not satisfied
2   --> $DIR/defaulted-never-note.rs:36:5
3    |
4 LL |     foo(_x);
5    |     ^^^ the trait `ImplementedForUnitButNotNever` is not implemented for `!`
6    |
7    = note: the trait is implemented for `()`. Possibly this error has been caused by changes to Rust's type-inference algorithm (see: https://github.com/rust-lang/rust/issues/48950 for more info). Consider whether you meant to use the type `()` here instead.
8 note: required by `foo`
9   --> $DIR/defaulted-never-note.rs:31:1
10    |
11 LL | fn foo<T: ImplementedForUnitButNotNever>(_t: T) {}
12    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.