]> git.lizzy.rs Git - rust.git/blob - src/test/ui/static/static-mut-not-pat.stderr
Auto merge of #102717 - beetrees:repr128-c-style-debuginfo, r=nagisa
[rust.git] / src / test / ui / static / static-mut-not-pat.stderr
1 error[E0530]: match bindings cannot shadow statics
2   --> $DIR/static-mut-not-pat.rs:13:9
3    |
4 LL | static mut a: isize = 3;
5    | ------------------------ the static `a` is defined here
6 ...
7 LL |         a => {}
8    |         ^ cannot be named the same as a static
9
10 error[E0530]: match bindings cannot shadow statics
11   --> $DIR/static-mut-not-pat.rs:36:9
12    |
13 LL | static mut STATIC_MUT_FOO: Foo = Foo { bar: Some(Direction::West), baz: NEW_FALSE };
14    | ------------------------------------------------------------------------------------ the static `STATIC_MUT_FOO` is defined here
15 ...
16 LL |         STATIC_MUT_FOO => (),
17    |         ^^^^^^^^^^^^^^ cannot be named the same as a static
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0530`.