]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/never_type/feature-gate-never_type_fallback.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / never_type / feature-gate-never_type_fallback.stderr
index 670f76867ce45122b29e6ebba4a3c628318c9507..54abed383000dc8134137db45fa06923d8cfe74e 100644 (file)
@@ -1,8 +1,14 @@
 error[E0277]: the trait bound `(): T` is not satisfied
-  --> $DIR/feature-gate-never_type_fallback.rs:9:25
+  --> $DIR/feature-gate-never_type_fallback.rs:10:5
    |
-LL | fn should_ret_unit() -> impl T {
-   |                         ^^^^^^ the trait `T` is not implemented for `()`
+LL |     foo(panic!())
+   |     ^^^ the trait `T` is not implemented for `()`
+   |
+note: required by a bound in `foo`
+  --> $DIR/feature-gate-never_type_fallback.rs:13:16
+   |
+LL | fn foo(_: impl T) {}
+   |                ^ required by this bound in `foo`
 
 error: aborting due to previous error