fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0599]: the method `get` exists for struct `Victim<'_, Self>`, but its trait bounds were not satisfied 2 --> $DIR/impl-derived-implicit-sized-bound-2.rs:28:19 3 | 4LL | struct Victim<'a, T: Perpetrator + ?Sized> { 5 | ------------------------------------------ 6 | | 7 | method `get` not found for this struct 8 | doesn't satisfy `Victim<'_, Self>: VictimTrait` 9... 10LL | self.getter().get(); 11 | ^^^ method cannot be called on `Victim<'_, Self>` due to unsatisfied trait bounds 12 | 13note: trait bound `Self: Sized` was not satisfied 14 --> $DIR/impl-derived-implicit-sized-bound-2.rs:12:10 15 | 16LL | impl<'a, T: Perpetrator /*+ ?Sized*/> VictimTrait for Victim<'a, T> { 17 | ^ ----------- ------------- 18 | | 19 | unsatisfied trait bound introduced here 20help: consider relaxing the type parameter's implicit `Sized` bound 21 | 22LL | impl<'a, T: ?Sized + Perpetrator /*+ ?Sized*/> VictimTrait for Victim<'a, T> { 23 | ++++++++ 24help: consider restricting the type parameter to satisfy the trait bound 25 | 26LL | struct Victim<'a, T: Perpetrator + ?Sized> where Self: Sized { 27 | +++++++++++++++++ 28 29error: aborting due to previous error 30 31For more information about this error, try `rustc --explain E0599`.