about summary refs log tree commit diff
path: root/src/test/ui/structs/struct-path-self.rs
diff options
context:
space:
mode:
authorAlexander Regueiro <alexreg@me.com>2018-12-18 00:40:22 +0000
committerAlexander Regueiro <alexreg@me.com>2018-12-26 21:54:18 +0000
commit8eb1a9e4e7337dd17827e00f0e1d2e10f11de30c (patch)
treef8f952c5bf48af13c7613aa3db015f9bc5670f8a /src/test/ui/structs/struct-path-self.rs
parent5a36f9e6e1eaf0330e499d15ab428350be837657 (diff)
downloadrust-8eb1a9e4e7337dd17827e00f0e1d2e10f11de30c.tar.gz
rust-8eb1a9e4e7337dd17827e00f0e1d2e10f11de30c.zip
Added regression test for using generic parameters on modules.
Diffstat (limited to 'src/test/ui/structs/struct-path-self.rs')
-rw-r--r--src/test/ui/structs/struct-path-self.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/structs/struct-path-self.rs b/src/test/ui/structs/struct-path-self.rs
index ccbf3db29b1..51ed9e5457e 100644
--- a/src/test/ui/structs/struct-path-self.rs
+++ b/src/test/ui/structs/struct-path-self.rs
@@ -6,7 +6,7 @@ trait Tr {
         //~^ ERROR expected struct, variant or union type, found Self
         let z = Self::<u8> {};
         //~^ ERROR expected struct, variant or union type, found Self
-        //~| ERROR type parameters are not allowed on this type
+        //~| ERROR type arguments are not allowed on this entity
         match s {
             Self { .. } => {}
             //~^ ERROR expected struct, variant or union type, found Self
@@ -17,7 +17,7 @@ trait Tr {
 impl Tr for S {
     fn f() {
         let s = Self {}; // OK
-        let z = Self::<u8> {}; //~ ERROR type parameters are not allowed on this type
+        let z = Self::<u8> {}; //~ ERROR type arguments are not allowed on this entity
         match s {
             Self { .. } => {} // OK
         }
@@ -27,7 +27,7 @@ impl Tr for S {
 impl S {
     fn g() {
         let s = Self {}; // OK
-        let z = Self::<u8> {}; //~ ERROR type parameters are not allowed on this type
+        let z = Self::<u8> {}; //~ ERROR type arguments are not allowed on this entity
         match s {
             Self { .. } => {} // OK
         }