We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f004120 commit 0bef7b5Copy full SHA for 0bef7b5
tests/compile-fail/non_expressive_names.rs
@@ -11,8 +11,15 @@
11
//~| NOTE: lint level defined here
12
13
14
+//~| NOTE: lint level defined here
15
#![allow(unused)]
16
17
+
18
+struct Foo {
19
+ apple: i32,
20
+ bpple: i32,
21
+}
22
23
fn main() {
24
let specter: i32;
25
let spectre: i32;
@@ -90,6 +97,13 @@ fn main() {
90
97
let rx_cake: i32;
91
98
}
92
99
100
+fn foo() {
101
+ let Foo { apple, bpple } = unimplemented!();
102
+ let Foo { apple: spring, //~NOTE existing binding defined here
103
+ bpple: sprang } = unimplemented!(); //~ ERROR: name is too similar
104
+ //~^HELP for further information
105
106
93
107
#[derive(Clone, Debug)]
94
108
enum MaybeInst {
95
109
Split,
tests/compile-fail/non_expressive_names2.rs
0 commit comments