]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/suggestions/type-ascription-instead-of-let.rs
Hide "type ascription is experimental error" unless it's the only one
[rust.git] / src / test / ui / suggestions / type-ascription-instead-of-let.rs
index 51d3d32565f8ae990643c9eee5c1a8d204ef008a..0e1c307502728c7c8bedf38e64887a2e894be3d2 100644 (file)
@@ -4,7 +4,6 @@ fn main() {
     let closure_annotated = |value: i32| -> i32 {
         temp: i32 = fun(5i32);
         //~^ ERROR cannot find value `temp` in this scope
-        //~| ERROR type ascription is experimental
         temp + value + 1
         //~^ ERROR cannot find value `temp` in this scope
     };