]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-trait/hidden-type-is-opaque-2.stderr
Auto merge of #95604 - nbdd0121:used2, r=petrochenkov
[rust.git] / src / test / ui / impl-trait / hidden-type-is-opaque-2.stderr
index e538aaeb4c5ed9bb485f5274eb8ccc7c7b4f1232..dcf1982312f294616b2f3198646ef20595b45c68 100644 (file)
@@ -1,11 +1,19 @@
 error[E0282]: type annotations needed
-  --> $DIR/hidden-type-is-opaque-2.rs:6:17
+  --> $DIR/hidden-type-is-opaque-2.rs:8:17
    |
 LL |     Thunk::new(|mut cont| {
    |                 ^^^^^^^^ consider giving this closure parameter a type
    |
    = note: type must be known at this point
 
-error: aborting due to previous error
+error[E0282]: type annotations needed
+  --> $DIR/hidden-type-is-opaque-2.rs:17:17
+   |
+LL |     Thunk::new(|mut cont| {
+   |                 ^^^^^^^^ consider giving this closure parameter a type
+   |
+   = note: type must be known at this point
+
+error: aborting due to 2 previous errors
 
 For more information about this error, try `rustc --explain E0282`.