1 error[E0277]: the trait bound `!: ImplementedForUnitButNotNever` is not satisfied
2 --> $DIR/defaulted-never-note.rs:30:5
5 | ^^^ the trait `ImplementedForUnitButNotNever` is not implemented for `!`
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
13 LL | fn foo<T: ImplementedForUnitButNotNever>(_t: T) {}
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `foo`
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0277`.