fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: method's name is the same as an existing method in a trait 2 --> $DIR/same_name_method.rs:21:13 3 | 4LL | fn foo() {} 5 | ^^^^^^^^^^^ 6 | 7note: existing `foo` defined here 8 --> $DIR/same_name_method.rs:26:13 9 | 10LL | fn foo() {} 11 | ^^^^^^^^^^^ 12 = note: `-D clippy::same-name-method` implied by `-D warnings` 13 = help: to override `-D warnings` add `#[allow(clippy::same_name_method)]` 14 15error: method's name is the same as an existing method in a trait 16 --> $DIR/same_name_method.rs:36:13 17 | 18LL | fn clone() {} 19 | ^^^^^^^^^^^^^ 20 | 21note: existing `clone` defined here 22 --> $DIR/same_name_method.rs:32:18 23 | 24LL | #[derive(Clone)] 25 | ^^^^^ 26 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) 27 28error: method's name is the same as an existing method in a trait 29 --> $DIR/same_name_method.rs:47:13 30 | 31LL | fn foo() {} 32 | ^^^^^^^^^^^ 33 | 34note: existing `foo` defined here 35 --> $DIR/same_name_method.rs:52:13 36 | 37LL | fn foo() {} 38 | ^^^^^^^^^^^ 39 40error: method's name is the same as an existing method in a trait 41 --> $DIR/same_name_method.rs:62:13 42 | 43LL | fn foo() {} 44 | ^^^^^^^^^^^ 45 | 46note: existing `foo` defined here 47 --> $DIR/same_name_method.rs:66:9 48 | 49LL | impl T1 for S {} 50 | ^^^^^^^^^^^^^^^^ 51 52error: method's name is the same as an existing method in a trait 53 --> $DIR/same_name_method.rs:75:13 54 | 55LL | fn foo() {} 56 | ^^^^^^^^^^^ 57 | 58note: existing `foo` defined here 59 --> $DIR/same_name_method.rs:79:9 60 | 61LL | impl T1 for S {} 62 | ^^^^^^^^^^^^^^^^ 63 64error: aborting due to 5 previous errors 65