]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/generic-associated-types/parse/trait-path-missing-gen_arg.rs
Auto merge of #79780 - camelid:use-summary_opts, r=GuillaumeGomez
[rust.git] / src / test / ui / generic-associated-types / parse / trait-path-missing-gen_arg.rs
index dad8c2a2909da85a0bb7cf9d3db7155c043fb3d0..94dda17aad710f9d9792c8c707ff449a0a8d8743 100644 (file)
@@ -7,7 +7,7 @@ trait X {
 
 const _: () = {
   fn f1<'a>(arg : Box<dyn X< : 32 >>) {}
-      //~^ ERROR: expected one of `>`, const, lifetime, or type, found `:`
+      //~^ ERROR: expected one of `>`, a const expression, lifetime, or type, found `:`
       //~| ERROR: expected parameter name, found `>`
       //~| ERROR: expected one of `!`, `)`, `+`, `,`, or `::`, found `>`
       //~| ERROR: constant provided when a type was expected
@@ -15,7 +15,7 @@ fn f1<'a>(arg : Box<dyn X< : 32 >>) {}
 
 const _: () = {
   fn f1<'a>(arg : Box<dyn X< = 32 >>) {}
-      //~^ ERROR: expected one of `>`, const, lifetime, or type, found `=`
+      //~^ ERROR: expected one of `>`, a const expression, lifetime, or type, found `=`
 };
 
 fn main() {}