about summary refs log tree commit diff
path: root/tests/ui/const-generics/const-arg-in-const-arg.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-11-27 03:34:56 +0000
committerMichael Goulet <michael@errs.io>2024-11-27 03:34:58 +0000
commit4c0ea55f403d319ce7da693483b39090240e2c97 (patch)
tree64b291a5f5b60dc7c42d7348509f1952353f9f00 /tests/ui/const-generics/const-arg-in-const-arg.rs
parent72cd7ac4f13ff37cb21c2cbdf2dbac6000a11dd9 (diff)
downloadrust-4c0ea55f403d319ce7da693483b39090240e2c97.tar.gz
rust-4c0ea55f403d319ce7da693483b39090240e2c97.zip
Bless tests due to extra error reporting due to normalizing types that are not WF
It's okay though b/c these are duplicated diagnostics.
Diffstat (limited to 'tests/ui/const-generics/const-arg-in-const-arg.rs')
-rw-r--r--tests/ui/const-generics/const-arg-in-const-arg.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/const-generics/const-arg-in-const-arg.rs b/tests/ui/const-generics/const-arg-in-const-arg.rs
index 27b74489fe8..0e1c6552edf 100644
--- a/tests/ui/const-generics/const-arg-in-const-arg.rs
+++ b/tests/ui/const-generics/const-arg-in-const-arg.rs
@@ -23,6 +23,7 @@ fn test<'a, 'b, T, const N: usize>() where &'b (): Sized {
     let _: [u8; baz::<'b>(&())]; //[min]~ ERROR generic parameters may not
 
     let _ = [0; foo::<T>()]; //[min]~ ERROR constant expression depends on a generic parameter
+                             //[min]~^ ERROR constant expression depends on a generic parameter
     let _ = [0; bar::<N>()]; //[min]~ ERROR generic parameters may not
                              //[min]~^ ERROR unresolved item provided when a constant was expected
     let _ = [0; faz::<'a>(&())]; //[min]~ ERROR generic parameters may not