2018-10-20 15:36:17 -05:00
|
|
|
error: cannot pass `self` by raw pointer
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/no-unsafe-self.rs:2:17
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn foo(*mut self);
|
2019-01-12 00:04:54 -06:00
|
|
|
| ^^^^ cannot pass `self` by raw pointer
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
error: cannot pass `self` by raw pointer
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/no-unsafe-self.rs:3:19
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn baz(*const self);
|
2019-01-12 00:04:54 -06:00
|
|
|
| ^^^^ cannot pass `self` by raw pointer
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
error: cannot pass `self` by raw pointer
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/no-unsafe-self.rs:4:13
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn bar(*self);
|
2019-01-12 00:04:54 -06:00
|
|
|
| ^^^^ cannot pass `self` by raw pointer
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
error: cannot pass `self` by raw pointer
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/no-unsafe-self.rs:9:17
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn foo(*mut self) { }
|
2019-01-12 00:04:54 -06:00
|
|
|
| ^^^^ cannot pass `self` by raw pointer
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
error: cannot pass `self` by raw pointer
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/no-unsafe-self.rs:10:19
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn baz(*const self) { }
|
2019-01-12 00:04:54 -06:00
|
|
|
| ^^^^ cannot pass `self` by raw pointer
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
error: cannot pass `self` by raw pointer
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/no-unsafe-self.rs:11:13
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn bar(*self) { }
|
2019-01-12 00:04:54 -06:00
|
|
|
| ^^^^ cannot pass `self` by raw pointer
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|