]> git.lizzy.rs Git - rust.git/blob - src/test/ui/never_type/feature-gate-never_type_fallback.stderr
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[rust.git] / src / test / ui / never_type / feature-gate-never_type_fallback.stderr
1 error[E0277]: the trait bound `(): T` is not satisfied
2   --> $DIR/feature-gate-never_type_fallback.rs:10:5
3    |
4 LL |     foo(panic!())
5    |     ^^^ the trait `T` is not implemented for `()`
6    |
7 note: required by a bound in `foo`
8   --> $DIR/feature-gate-never_type_fallback.rs:13:16
9    |
10 LL | fn foo(_: impl T) {}
11    |                ^ required by this bound in `foo`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.