]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/synthetic-param.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / synthetic-param.rs
index e53e3ba06e0d10e0c3f1525f47707fa131363593..e14697f5c3e97d01a0e7fc16c952c5031d15c4f0 100644 (file)
@@ -17,12 +17,12 @@ pub fn func<#[rustc_synthetic] T>(_: T) {}
 }
 
 fn main() {
-    func::<u8>(42); //~ ERROR cannot provide explicit type parameters
+    func::<u8>(42); //~ ERROR cannot provide explicit generic arguments
     func(42); // Ok
 
-    Foo::func::<u8>(42); //~ ERROR cannot provide explicit type parameters
+    Foo::func::<u8>(42); //~ ERROR cannot provide explicit generic arguments
     Foo::func(42); // Ok
 
-    Bar::<i8>::func::<u8>(42); //~ ERROR cannot provide explicit type parameters
+    Bar::<i8>::func::<u8>(42); //~ ERROR cannot provide explicit generic arguments
     Bar::<i8>::func(42); // Ok
 }