]> git.lizzy.rs Git - rust.git/blob - src/test/ui/never_type/defaulted-never-note.fallback.stderr
Rollup merge of #94577 - RalfJung:simd-miri, r=scottmcm
[rust.git] / src / test / ui / never_type / defaulted-never-note.fallback.stderr
1 error[E0277]: the trait bound `!: ImplementedForUnitButNotNever` is not satisfied
2   --> $DIR/defaulted-never-note.rs:30:5
3    |
4 LL |     foo(_x);
5    |     ^^^ the trait `ImplementedForUnitButNotNever` is not implemented for `!`
6    |
7    = note: this trait is implemented for `()`
8    = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 <https://github.com/rust-lang/rust/issues/48950> for more information)
9    = help: did you intend to use the type `()` here instead?
10 note: required by a bound in `foo`
11   --> $DIR/defaulted-never-note.rs:25:11
12    |
13 LL | fn foo<T: ImplementedForUnitButNotNever>(_t: T) {}
14    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `foo`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0277`.