summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-types/defaults-wf.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/associated-types/defaults-wf.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/associated-types/defaults-wf.stderr b/tests/ui/associated-types/defaults-wf.stderr
new file mode 100644
index 000000000..fc830b8d6
--- /dev/null
+++ b/tests/ui/associated-types/defaults-wf.stderr
@@ -0,0 +1,13 @@
+error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
+ --> $DIR/defaults-wf.rs:7:15
+ |
+LL | type Ty = Vec<[u8]>;
+ | ^^^^^^^^^ doesn't have a size known at compile-time
+ |
+ = help: the trait `Sized` is not implemented for `[u8]`
+note: required by a bound in `Vec`
+ --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0277`.