rust/tests/ui/parser/no-unsafe-self.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.0 KiB
Plaintext
Raw Normal View History

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