]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/const-generics/fn-const-param-call.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / const-generics / fn-const-param-call.rs
index 84615386d29959a07024cd5fd0e7610edeb9af17..cd4b19db3533117f6d6bff106ec48ed3911d4112 100644 (file)
@@ -9,12 +9,12 @@ fn function() -> u32 {
 
 struct Wrapper<const F: fn() -> u32>;
 
-impl<const F: fn() -> u32> Wrapper<{F}> {
+impl<const F: fn() -> u32> Wrapper<F> {
     fn call() -> u32 {
         F()
     }
 }
 
 fn main() {
-    assert_eq!(Wrapper::<{function}>::call(), 17);
+    assert_eq!(Wrapper::<function>::call(), 17);
 }