File tree 6 files changed +16
-19
lines changed
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`:
4
4
LL | const bar: bool = true;
5
5
| ----------------------- previous definition of `bar` here
6
6
LL | fn bar() {}
7
- | ^^^^^^^^^^^ duplicate definition
7
+ | ^^^^^^^^ duplicate definition
8
8
9
9
error: aborting due to previous error
10
10
Original file line number Diff line number Diff line change @@ -2,17 +2,17 @@ error[E0201]: duplicate definitions with name `bar`:
2
2
--> $DIR/E0201.rs:5:5
3
3
|
4
4
LL | fn bar(&self) -> bool { self.0 > 5 }
5
- | ------------------------------------ previous definition of `bar` here
5
+ | --------------------- previous definition of `bar` here
6
6
LL | fn bar() {}
7
- | ^^^^^^^^^^^ duplicate definition
7
+ | ^^^^^^^^ duplicate definition
8
8
9
9
error[E0201]: duplicate definitions with name `baz`:
10
10
--> $DIR/E0201.rs:17:5
11
11
|
12
12
LL | fn baz(&self) -> bool { true }
13
- | ------------------------------ previous definition of `baz` here
13
+ | --------------------- previous definition of `baz` here
14
14
LL | fn baz(&self) -> bool { self.0 > 5 }
15
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definition
15
+ | ^^^^^^^^^^^^^^^^^^^^^ duplicate definition
16
16
17
17
error[E0201]: duplicate definitions with name `Quux`:
18
18
--> $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`:
2
2
--> $DIR/impl-duplicate-methods.rs:5:5
3
3
|
4
4
LL | fn orange(&self) {}
5
- | ------------------- previous definition of `orange` here
5
+ | ---------------- previous definition of `orange` here
6
6
LL | fn orange(&self) {}
7
- | ^^^^^^^^^^^^^^^^^^^ duplicate definition
7
+ | ^^^^^^^^^^^^^^^^ duplicate definition
8
8
9
9
error: aborting due to previous error
10
10
Original file line number Diff line number Diff line change 1
1
error[E0201]: duplicate definitions with name `bar`:
2
2
--> $DIR/issue-4265.rs:10:5
3
3
|
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
12
9
13
10
error: aborting due to previous error
14
11
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ error[E0201]: duplicate definitions with name `bar`:
2
2
--> $DIR/method-macro-backtrace.rs:22:5
3
3
|
4
4
LL | fn bar(&self) { }
5
- | ----------------- previous definition of `bar` here
5
+ | ------------- previous definition of `bar` here
6
6
LL | fn bar(&self) { }
7
- | ^^^^^^^^^^^^^^^^^ duplicate definition
7
+ | ^^^^^^^^^^^^^ duplicate definition
8
8
9
9
error: aborting due to previous error
10
10
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ error[E0201]: duplicate definitions with name `bar`:
2
2
--> $DIR/issue-8153.rs:11:5
3
3
|
4
4
LL | fn bar(&self) -> isize {1}
5
- | -------------------------- previous definition of `bar` here
5
+ | ---------------------- previous definition of `bar` here
6
6
LL | fn bar(&self) -> isize {2}
7
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definition
7
+ | ^^^^^^^^^^^^^^^^^^^^^^ duplicate definition
8
8
9
9
error: aborting due to previous error
10
10
You can’t perform that action at this time.
0 commit comments