From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/traits/bad-sized.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/ui/traits/bad-sized.rs (limited to 'tests/ui/traits/bad-sized.rs') diff --git a/tests/ui/traits/bad-sized.rs b/tests/ui/traits/bad-sized.rs new file mode 100644 index 000000000..a15219679 --- /dev/null +++ b/tests/ui/traits/bad-sized.rs @@ -0,0 +1,9 @@ +trait Trait {} + +pub fn main() { + let x: Vec = Vec::new(); + //~^ ERROR only auto traits can be used as additional traits in a trait object + //~| ERROR the size for values of type + //~| ERROR the size for values of type + //~| ERROR the size for values of type +} -- cgit v1.2.3