From: Pierre-Emmanuel Patry <pierre-emmanuel.pa...@embecosm.com> A previous bug with name resolution 2.0 was caused by an incorrectly resolved inherent impl name. This test shall highlight the behavior and prevent regression.
gcc/testsuite/ChangeLog: * rust/compile/name_resolution25.rs: New test. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.pa...@embecosm.com> --- gcc/testsuite/rust/compile/name_resolution25.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 gcc/testsuite/rust/compile/name_resolution25.rs diff --git a/gcc/testsuite/rust/compile/name_resolution25.rs b/gcc/testsuite/rust/compile/name_resolution25.rs new file mode 100644 index 00000000000..3cacac7f64b --- /dev/null +++ b/gcc/testsuite/rust/compile/name_resolution25.rs @@ -0,0 +1,5 @@ +// { dg-options "-frust-name-resolution-2.0" } + +struct Test; // { dg-warning "struct is never constructed: .Test." } + +impl Test {} -- 2.45.2