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