blob: f7e94117e12c7184cd6a71be4ed62db2c015a63a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
struct Foo;
impl Foo {
fn foo(self: *const Self) {}
//~^ ERROR `*const Foo` cannot be used as the type of `self` without
}
trait Bar {
fn bar(self: *const Self);
//~^ ERROR `*const Self` cannot be used as the type of `self` without
}
impl Bar for () {
fn bar(self: *const Self) {}
//~^ ERROR `*const ()` cannot be used as the type of `self` without
}
fn main() {}
|