]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-64252-self-type.rs
Rollup merge of #65276 - varkor:toolstate-no-ping, r=Mark-Simulacrum
[rust.git] / src / test / ui / suggestions / issue-64252-self-type.rs
1 // This test checks that a suggestion to add a `self: ` parameter name is provided
2 // to functions where this is applicable.
3
4 pub fn foo(Box<Self>) { }
5 //~^ ERROR expected one of `:`, `@`, or `|`, found `<`
6
7 struct Bar;
8
9 impl Bar {
10     fn bar(Box<Self>) { }
11     //~^ ERROR expected one of `:`, `@`, or `|`, found `<`
12 }
13
14 fn main() { }