mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
16 lines
384 B
Plaintext
16 lines
384 B
Plaintext
warning: methods `get_from_ref` and `inc` are never used
|
|
--> $DIR/overloaded-index-in-field.rs:30:8
|
|
|
|
|
LL | trait Int {
|
|
| --- methods in this trait
|
|
LL | fn get(self) -> isize;
|
|
LL | fn get_from_ref(&self) -> isize;
|
|
| ^^^^^^^^^^^^
|
|
LL | fn inc(&mut self);
|
|
| ^^^
|
|
|
|
|
= note: `#[warn(dead_code)]` on by default
|
|
|
|
warning: 1 warning emitted
|
|
|