diff options
Diffstat (limited to 'src/test/ui/wf/wf-array-elem-sized.rs')
-rw-r--r-- | src/test/ui/wf/wf-array-elem-sized.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/wf/wf-array-elem-sized.rs b/src/test/ui/wf/wf-array-elem-sized.rs new file mode 100644 index 000000000..34bf22034 --- /dev/null +++ b/src/test/ui/wf/wf-array-elem-sized.rs @@ -0,0 +1,11 @@ +// Check that array element types must be Sized. Issue #25692. + + +#![allow(dead_code)] + +struct Foo { + foo: [[u8]], //~ ERROR E0277 +} + + +fn main() { } |