]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/unconstrained-none.stderr
Auto merge of #99028 - tmiasko:inline, r=estebank
[rust.git] / src / test / ui / unconstrained-none.stderr
index fbd71bd091d0b6ed300d9eb4301e6783fac1930b..19ac74fdf58319a4ecc022261919e7a69092380f 100644 (file)
@@ -2,7 +2,12 @@ error[E0282]: type annotations needed
   --> $DIR/unconstrained-none.rs:4:5
    |
 LL |     None;
-   |     ^^^^ cannot infer type for type parameter `T` declared on the enum `Option`
+   |     ^^^^ cannot infer type of the type parameter `T` declared on the enum `Option`
+   |
+help: consider specifying the generic argument
+   |
+LL |     None::<T>;
+   |         +++++
 
 error: aborting due to previous error