]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-arbitrary_self_types-raw-pointer.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-arbitrary_self_types-raw-pointer.rs
1 struct Foo;
2
3 impl Foo {
4     fn foo(self: *const Self) {}
5     //~^ ERROR `*const Foo` cannot be used as the type of `self` without
6 }
7
8 trait Bar {
9     fn bar(self: *const Self);
10     //~^ ERROR `*const Self` cannot be used as the type of `self` without
11 }
12
13 impl Bar for () {
14     fn bar(self: *const Self) {}
15     //~^ ERROR `*const ()` cannot be used as the type of `self` without
16 }
17
18 fn main() {}