]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.rs
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / const-generics / params-in-ct-in-ty-param-lazy-norm.rs
index a85e2a2f2c4f18b46383dc28672a8e998079dc32..76c1b84aef557864846ab7f9695be49113ac3561 100644 (file)
@@ -1,15 +1,12 @@
 // revisions: full min
-
 #![cfg_attr(full, feature(const_generics))]
 #![cfg_attr(full, allow(incomplete_features))]
 
 struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U);
-//[full]~^ ERROR constant values inside of type parameter defaults
-//[min]~^^ ERROR generic parameters may not be used in const operations
+//[min]~^ ERROR generic parameters may not be used in const operations
 
-// FIXME(const_generics_defaults): We still don't know how to deal with type defaults.
 struct Bar<T = [u8; N], const N: usize>(T);
-//~^ ERROR constant values inside of type parameter defaults
-//~| ERROR type parameters with a default
+//~^ ERROR generic parameters with a default cannot use forward declared identifiers
+//~| ERROR generic parameters with a default
 
 fn main() {}