]> git.lizzy.rs Git - rust.git/blob - tests/ui/needless_update.stderr
rustup and compile-fail -> ui test move
[rust.git] / tests / ui / needless_update.stderr
1 error: struct update has no effect, all the fields in the struct have already been specified
2   --> $DIR/needless_update.rs:16:23
3    |
4 16 |     S { a: 1, b: 1, ..base }; //~ERROR struct update has no effect
5    |                       ^^^^
6    |
7 note: lint level defined here
8   --> $DIR/needless_update.rs:4:9
9    |
10 4  | #![deny(needless_update)]
11    |         ^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14