]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-56835.rs
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / ui / issues / issue-56835.rs
1 pub struct Foo {}
2
3 impl Foo {
4     fn bar(Self(foo): Self) {}
5     //~^ ERROR the `Self` constructor can only be used with tuple or unit structs
6     //~^^ ERROR expected tuple struct or tuple variant, found self constructor `Self` [E0164]
7 }
8
9 fn main() {}