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