about summary refs log tree commit diff
path: root/tests/ui/resolve/issue-65035-static-with-parent-generics.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2023-09-10 23:06:14 +0200
committerLeón Orell Valerian Liehr <me@fmease.dev>2023-09-10 23:06:14 +0200
commitb00e408e613700124463b72f0a449a28c44a8178 (patch)
tree74b738a1a09ad5fd3174afd7a87010b58cf990ab /tests/ui/resolve/issue-65035-static-with-parent-generics.rs
parent3cd97ed3c3efe11bf6b63d23dce2515238b78a57 (diff)
downloadrust-b00e408e613700124463b72f0a449a28c44a8178.tar.gz
rust-b00e408e613700124463b72f0a449a28c44a8178.zip
Generalize E0401
Diffstat (limited to 'tests/ui/resolve/issue-65035-static-with-parent-generics.rs')
-rw-r--r--tests/ui/resolve/issue-65035-static-with-parent-generics.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ui/resolve/issue-65035-static-with-parent-generics.rs b/tests/ui/resolve/issue-65035-static-with-parent-generics.rs
index f96c04841dd..bc99584a8d2 100644
--- a/tests/ui/resolve/issue-65035-static-with-parent-generics.rs
+++ b/tests/ui/resolve/issue-65035-static-with-parent-generics.rs
@@ -1,26 +1,26 @@
 fn f<T>() {
     extern "C" {
         static a: *const T;
-        //~^ ERROR can't use generic parameters from outer function
+        //~^ ERROR can't use generic parameters from outer item
     }
 }
 
 fn g<T: Default>() {
     static a: *const T = Default::default();
-    //~^ ERROR can't use generic parameters from outer function
+    //~^ ERROR can't use generic parameters from outer item
 }
 
 fn h<const N: usize>() {
     extern "C" {
         static a: [u8; N];
-        //~^ ERROR can't use generic parameters from outer function
+        //~^ ERROR can't use generic parameters from outer item
     }
 }
 
 fn i<const N: usize>() {
     static a: [u8; N] = [0; N];
-    //~^ ERROR can't use generic parameters from outer function
-    //~| ERROR can't use generic parameters from outer function
+    //~^ ERROR can't use generic parameters from outer item
+    //~| ERROR can't use generic parameters from outer item
 }
 
 fn main() {}