]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/mismatched_types/issue-47706.rs
6 pub fn new(foo
: Option
<i32>, _
: ()) -> Foo
{
10 pub fn map(self) -> Option
<Foo
> {
11 self.foo
.map(Foo
::new
)
13 //~^^ ERROR function is expected to take 1 argument, but it takes 2 arguments [E0593]
29 //~^^ ERROR function is expected to take 0 arguments, but it takes 1 argument [E0593]