|
| 1 | +error[E0658]: `<FR as FindReceiver>::Receiver` cannot be used as the type of `self` without the `arbitrary_self_types` feature |
| 2 | + --> $DIR/arbitrary-self-from-method-substs-no-turbofish.rs:13:36 |
| 3 | + | |
| 4 | +LL | fn get<FR: FindReceiver>(self: FR::Receiver, other: FR) -> u32 { |
| 5 | + | ^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: see issue #44874 <https://github.com/rust-lang/rust/issues/44874> for more information |
| 8 | + = help: add `#![feature(arbitrary_self_types)]` to the crate attributes to enable |
| 9 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 10 | + = help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`) |
| 11 | + |
| 12 | +error[E0271]: type mismatch resolving `<Silly as FindReceiver>::Receiver == Foo` |
| 13 | + --> $DIR/arbitrary-self-from-method-substs-no-turbofish.rs:36:9 |
| 14 | + | |
| 15 | +LL | foo.get(Silly); |
| 16 | + | ^^^ type mismatch resolving `<Silly as FindReceiver>::Receiver == Foo` |
| 17 | + | |
| 18 | +note: expected this to be `SmartPtr<Foo>` |
| 19 | + --> $DIR/arbitrary-self-from-method-substs-no-turbofish.rs:29:21 |
| 20 | + | |
| 21 | +LL | type Receiver = SmartPtr<Foo>; |
| 22 | + | ^^^^^^^^^^^^^ |
| 23 | + = note: expected struct `SmartPtr<Foo>` |
| 24 | + found struct `Foo` |
| 25 | + |
| 26 | +error[E0271]: type mismatch resolving `<Silly as FindReceiver>::Receiver == &Foo` |
| 27 | + --> $DIR/arbitrary-self-from-method-substs-no-turbofish.rs:40:9 |
| 28 | + | |
| 29 | +LL | foo.get(Silly); |
| 30 | + | ^^^ type mismatch resolving `<Silly as FindReceiver>::Receiver == &Foo` |
| 31 | + | |
| 32 | +note: expected this to be `SmartPtr<Foo>` |
| 33 | + --> $DIR/arbitrary-self-from-method-substs-no-turbofish.rs:29:21 |
| 34 | + | |
| 35 | +LL | type Receiver = SmartPtr<Foo>; |
| 36 | + | ^^^^^^^^^^^^^ |
| 37 | + = note: expected struct `SmartPtr<Foo>` |
| 38 | + found reference `&Foo` |
| 39 | + |
| 40 | +error: aborting due to 3 previous errors |
| 41 | + |
| 42 | +Some errors have detailed explanations: E0271, E0658. |
| 43 | +For more information about an error, try `rustc --explain E0271`. |
0 commit comments