mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-22 20:53:21 +00:00
Added test case for ptr_arg
This commit is contained in:
parent
ed38d9c79f
commit
0f6d422817
1 changed files with 7 additions and 0 deletions
|
@ -77,3 +77,10 @@ fn test_cow_with_ref(c: &Cow<[i32]>) {
|
|||
fn test_cow(c: Cow<[i32]>) {
|
||||
let _c = c;
|
||||
}
|
||||
|
||||
trait Foo2 {
|
||||
fn do_string(&self);
|
||||
}
|
||||
|
||||
// no error for &self references where self is of type String (#2293)
|
||||
impl Foo2 for String { fn do_string(&self) {} }
|
||||
|
|
Loading…
Reference in a new issue