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