]> git.lizzy.rs Git - rust.git/blob - tests/ui/never_type/diverging-fallback-no-leak.fallback.stderr
Rollup merge of #96763 - Abdur-rahmaanJ:patch-1, r=Mark-Simulacrum
[rust.git] / tests / ui / never_type / diverging-fallback-no-leak.fallback.stderr
1 error[E0277]: the trait bound `!: Test` is not satisfied
2   --> $DIR/diverging-fallback-no-leak.rs:17:23
3    |
4 LL |     unconstrained_arg(return);
5    |     ----------------- ^^^^^^ the trait `Test` is not implemented for `!`
6    |     |
7    |     required by a bound introduced by this call
8    |
9    = help: the following other types implement trait `Test`:
10              ()
11              i32
12    = 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)
13    = help: did you intend to use the type `()` here instead?
14 note: required by a bound in `unconstrained_arg`
15   --> $DIR/diverging-fallback-no-leak.rs:12:25
16    |
17 LL | fn unconstrained_arg<T: Test>(_: T) {}
18    |                         ^^^^ required by this bound in `unconstrained_arg`
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0277`.