Merge pull request #3131 from JoshMcguigan/ptr_arg-2293
Fix #2293 - ptr_arg
This commit is contained in:
commit
ebb88a4208
@ -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…
x
Reference in New Issue
Block a user