]> git.proxmox.com Git - rustc.git/blobdiff - src/test/run-pass/higher-rank-trait-bounds/hrtb-precedence-of-plus.rs
New upstream version 1.37.0+dfsg1
[rustc.git] / src / test / run-pass / higher-rank-trait-bounds / hrtb-precedence-of-plus.rs
index 5fda4b826e00c8c6b643922907d0380e24b6dbe2..6834c392d4e96634a8791cf071857fec2e9a3925 100644 (file)
@@ -6,7 +6,7 @@
 // 'static` and not `Fn(isize) -> (isize + 'static)`. The latter would
 // cause a compilation error. Issue #18772.
 
-fn adder(y: isize) -> Box<Fn(isize) -> isize + 'static> {
+fn adder(y: isize) -> Box<dyn Fn(isize) -> isize + 'static> {
     Box::new(move |x| y + x)
 }