]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/traits/trait-object-vs-lifetime.rs
Move generic arg / param validation to `create_substs_for_generic_args`
[rust.git] / src / test / ui / traits / trait-object-vs-lifetime.rs
index e0ff73494837613385ab9b6b6ef3cdbb309382e0..e885cd2f68ac5bbed55e1ced305c729cd34ef060 100644 (file)
@@ -12,6 +12,6 @@ fn main() {
     //~^ ERROR wrong number of lifetime arguments: expected 1, found 2
     //~| ERROR wrong number of type arguments: expected 1, found 0
     let _: S<dyn 'static +, 'static>;
-    //~^ ERROR lifetime arguments must be declared prior to type arguments
+    //~^ ERROR type provided when a lifetime was expected
     //~| ERROR at least one trait is required for an object type
 }