]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-64252-self-type.rs
Rollup merge of #106751 - clubby789:const-intrinsic, r=GuillaumeGomez
[rust.git] / tests / 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() { }