1 error[E0382]: use of moved value: `self`
2 --> $DIR/use-after-move-self.rs:10:16
4 LL | pub fn foo(self) -> isize {
5 | ---- move occurs because `self` has type `S`, which does not implement the `Copy` trait
7 | ----- `self` moved due to this method call
9 | ^^^^^^^ value used here after move
11 note: this function takes ownership of the receiver `self`, which moves `self`
12 --> $DIR/use-after-move-self.rs:13:16
14 LL | pub fn bar(self) {}
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0382`.