Adds test of issue 3904 and fix test of the issue 3874 to follows rust
1.49 behavior.
Fixes GCC-Rust/gccrs#3904
gcc/testsuite/ChangeLog:
* rust/compile/issue-3874.rs: Fixes test.
* rust/compile/issue-3904.rs: New test.
Signed-off-by: lenny.chiadmi-delage <lenny.chiadmi-delage@epita.fr>
fn wow(){
&#[serde]
- // { dg-error "found unexpected token .#. in null denotation" "" { target *-*-* } .-1 }
-}
+} // { dg-error "found unexpected token .\}. in null denotation" "" { target *-*-* } . }
--- /dev/null
+static STATIC_1: dyn = *#[serde()]; // { dg-error "found unexpected token .;. in null denotation" "" { target *-*-* } 0 }