]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-56835.rs
Enable full revision in const generics ui tests
[rust.git] / src / test / 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() {}