rust/src/test
kennytm e6a6d980e0 Rollup merge of #45178 - Badel2:comma-after-struct, r=petrochenkov
Better error message for comma after base struct

#41834

This adds a better error for commas after the base struct:
```
let foo = Foo {
    one: 111,
    ..Foo::default(), // This comma is a syntax error
};
```

The current error is a generic `expected one of ...` which isn't beginner-friendly. My error looks like this:

```
error: cannot use a comma after the base struct
  --> tmp/example.rs:26:9
   |
26 |         ..Foo::default(),
   |         ^^^^^^^^^^^^^^^^- help: remove this comma
   |
   = note: the base struct expansion must always be the last field
```

I even added a note for people who don't know why this isn't allowed.
2017-10-13 23:37:57 +08:00
..
codegen rustc: Add LLVM nounwind with -C panic=abort 2017-10-11 09:05:38 -07:00
codegen-units rustc: Don't inline in CGUs at -O0 2017-10-07 19:09:46 -07:00
compile-fail Rollup merge of #45133 - GuillaumeGomez:usize-index-msg, r=dtolnay 2017-10-13 23:37:55 +08:00
compile-fail-fulldeps change #![feature(const_fn)] to specific gates 2017-09-16 15:53:02 +00:00
debuginfo Implement display_hint in gdb pretty printers 2017-10-06 13:05:53 -06:00
incremental Rollup merge of #45148 - gaurikholkar:master, r=nikomatsakis 2017-10-10 20:22:27 -04:00
mir-opt Fix tests 2017-10-08 23:52:15 +09:00
parse-fail output compiler message updated 2017-10-10 23:52:45 -03:00
pretty Fix tests 2017-10-08 23:52:15 +09:00
run-fail Migrate to eprint/eprintln macros where appropriate. 2017-09-28 11:38:35 -04:00
run-fail-fulldeps Implement a file-path remapping feature in support of debuginfo and reproducible builds. 2017-04-26 15:44:02 +02:00
run-make Rollup merge of #45108 - phil-opp:patch-2, r=japaric 2017-10-10 22:44:07 +08:00
run-pass Shorten some test names 2017-10-11 02:36:40 +03:00
run-pass-fulldeps Auto merge of #45020 - MaloJaffre:needs-test, r=alexcrichton 2017-10-08 14:44:12 +00:00
run-pass-valgrind Add a run-pass-valgrind test for vecdeque issue 2017-09-24 10:56:08 -07:00
rustdoc Rollup merge of #44989 - QuietMisdreavus:what-is-your-quest, r=GuillaumeGomez 2017-10-13 01:58:36 +08:00
ui Rollup merge of #45178 - Badel2:comma-after-struct, r=petrochenkov 2017-10-13 23:37:57 +08:00
ui-fulldeps Point at signature on unused lint 2017-09-25 13:25:54 -07:00
COMPILER_TESTS.md Merge ui/README.md into COMPILER_TESTS.md and describe how custom UI normalization works. 2017-07-11 16:57:53 +08:00