]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_infer/src/infer/error_reporting/need_type_info.rs
Rollup merge of #92743 - bjorn3:less_symbol_intern, r=camelid
[rust.git] / compiler / rustc_infer / src / infer / error_reporting / need_type_info.rs
index e5210c5b190637217ed38cdc4dc5535fc351d0e3..c1cca834f2b7bdf1b3b9122aab18fcd03a4b29b5 100644 (file)
@@ -540,8 +540,8 @@ pub fn emit_inference_failure_err(
             // error[E0284]: type annotations needed
             //  --> file.rs:2:5
             //   |
-            // 2 |     vec![Ok(2)].into_iter().collect()?;
-            //   |                             ^^^^^^^ cannot infer type
+            // 2 |     [Ok(2)].into_iter().collect()?;
+            //   |                         ^^^^^^^ cannot infer type
             //   |
             //   = note: cannot resolve `<_ as std::ops::Try>::Ok == _`
             if span.contains(*call_span) { *call_span } else { span }