File tree Expand file tree Collapse file tree 6 files changed +16
-19
lines changed Expand file tree Collapse file tree 6 files changed +16
-19
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ error[E0201]: duplicate definitions with name `bar`:
44LL | const bar: bool = true;
55 | ----------------------- previous definition of `bar` here
66LL | fn bar() {}
7- | ^^^^^^^^^^^ duplicate definition
7+ | ^^^^^^^^ duplicate definition
88
99error: aborting due to previous error
1010
Original file line number Diff line number Diff line change @@ -2,17 +2,17 @@ error[E0201]: duplicate definitions with name `bar`:
22 --> $DIR/E0201.rs:5:5
33 |
44LL | fn bar(&self) -> bool { self.0 > 5 }
5- | ------------------------------------ previous definition of `bar` here
5+ | --------------------- previous definition of `bar` here
66LL | fn bar() {}
7- | ^^^^^^^^^^^ duplicate definition
7+ | ^^^^^^^^ duplicate definition
88
99error[E0201]: duplicate definitions with name `baz`:
1010 --> $DIR/E0201.rs:17:5
1111 |
1212LL | fn baz(&self) -> bool { true }
13- | ------------------------------ previous definition of `baz` here
13+ | --------------------- previous definition of `baz` here
1414LL | fn baz(&self) -> bool { self.0 > 5 }
15- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definition
15+ | ^^^^^^^^^^^^^^^^^^^^^ duplicate definition
1616
1717error[E0201]: duplicate definitions with name `Quux`:
1818 --> $DIR/E0201.rs:18:5
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ error[E0201]: duplicate definitions with name `orange`:
22 --> $DIR/impl-duplicate-methods.rs:5:5
33 |
44LL | fn orange(&self) {}
5- | ------------------- previous definition of `orange` here
5+ | ---------------- previous definition of `orange` here
66LL | fn orange(&self) {}
7- | ^^^^^^^^^^^^^^^^^^^ duplicate definition
7+ | ^^^^^^^^^^^^^^^^ duplicate definition
88
99error: aborting due to previous error
1010
Original file line number Diff line number Diff line change 11error[E0201]: duplicate definitions with name `bar`:
22 --> $DIR/issue-4265.rs:10:5
33 |
4- LL | / fn bar() {
5- LL | | Foo { baz: 0 }.bar();
6- LL | | }
7- | |_____- previous definition of `bar` here
8- LL |
9- LL | / fn bar() {
10- LL | | }
11- | |_____^ duplicate definition
4+ LL | fn bar() {
5+ | -------- previous definition of `bar` here
6+ ...
7+ LL | fn bar() {
8+ | ^^^^^^^^ duplicate definition
129
1310error: aborting due to previous error
1411
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ error[E0201]: duplicate definitions with name `bar`:
22 --> $DIR/method-macro-backtrace.rs:22:5
33 |
44LL | fn bar(&self) { }
5- | ----------------- previous definition of `bar` here
5+ | ------------- previous definition of `bar` here
66LL | fn bar(&self) { }
7- | ^^^^^^^^^^^^^^^^^ duplicate definition
7+ | ^^^^^^^^^^^^^ duplicate definition
88
99error: aborting due to previous error
1010
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ error[E0201]: duplicate definitions with name `bar`:
22 --> $DIR/issue-8153.rs:11:5
33 |
44LL | fn bar(&self) -> isize {1}
5- | -------------------------- previous definition of `bar` here
5+ | ---------------------- previous definition of `bar` here
66LL | fn bar(&self) -> isize {2}
7- | ^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definition
7+ | ^^^^^^^^^^^^^^^^^^^^^^ duplicate definition
88
99error: aborting due to previous error
1010
You can’t perform that action at this time.
0 commit comments