fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0277]: the trait bound `!: ImplementedForUnitButNotNever` is not satisfied 2 --> $DIR/defaulted-never-note.rs:27:5 3 | 4LL | fn foo<T: ImplementedForUnitButNotNever>(_t: T) {} 5 | --- ----------------------------- required by this bound in `foo` 6... 7LL | 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: https://github.com/rust-lang/rust/issues/48950 for more info). Consider whether you meant to use the type `()` here instead. 11 12error: aborting due to previous error 13 14For more information about this error, try `rustc --explain E0277`.