From: Pierre-Emmanuel Patry Date: Mon, 20 Nov 2023 13:16:41 +0000 (+0100) Subject: gccrs: Add a regression test for super trait on auto trait X-Git-Tag: basepoints/gcc-15~1596 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84e06bb631424cba3ee47f522c9629b104019ec9;p=thirdparty%2Fgcc.git gccrs: Add a regression test for super trait on auto trait Add a new regression test to highlight the error behavior with a super trait on an auto trait. gcc/testsuite/ChangeLog: * rust/compile/auto_trait_super_trait.rs: New test. Signed-off-by: Pierre-Emmanuel Patry --- diff --git a/gcc/testsuite/rust/compile/auto_trait_super_trait.rs b/gcc/testsuite/rust/compile/auto_trait_super_trait.rs new file mode 100644 index 000000000000..1080afb5124d --- /dev/null +++ b/gcc/testsuite/rust/compile/auto_trait_super_trait.rs @@ -0,0 +1,4 @@ +trait Cold {} + +auto trait IsCool: Cold {} +// { dg-error "auto traits cannot have super traits .E0568." "" { target *-*-* } .-1 }