]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unused_unit.rs
Rustup to https://github.com/rust-lang/rust/pull/61203
[rust.git] / tests / ui / unused_unit.rs
index 8e31385b70c9318f92c5dc5990704c617dede45e..1acd427be1eefd837070dcddd73762927cb08c06 100644 (file)
@@ -18,7 +18,7 @@ impl Unitter {
     pub fn get_unit<F: Fn() -> (), G>(&self, f: F, _g: G) ->
         ()
     where G: Fn() -> () {
-        let _y: &Fn() -> () = &f;
+        let _y: &dyn Fn() -> () = &f;
         (); // this should not lint, as it's not in return type position
     }
 }