]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/defaulted-never-note.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / defaulted-never-note.stderr
index 32922354fe67bf8f74dccc936fddf609baaca757..45174c322947d9646280e11575c74629e2f99f43 100644 (file)
@@ -1,12 +1,12 @@
 error[E0277]: the trait bound `!: ImplementedForUnitButNotNever` is not satisfied
-  --> $DIR/defaulted-never-note.rs:36:5
+  --> $DIR/defaulted-never-note.rs:26:5
    |
 LL |     foo(_x);
    |     ^^^ the trait `ImplementedForUnitButNotNever` is not implemented for `!`
    |
    = 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.
 note: required by `foo`
-  --> $DIR/defaulted-never-note.rs:31:1
+  --> $DIR/defaulted-never-note.rs:21:1
    |
 LL | fn foo<T: ImplementedForUnitButNotNever>(_t: T) {}
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^