]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-75883.rs
Auto merge of #98100 - bjorn3:use_object_for_bitcode_reading, r=wesleywiser
[rust.git] / src / test / ui / typeck / issue-75883.rs
1 // Regression test for #75883.
2
3 pub struct UI {}
4
5 impl UI {
6     pub fn run() -> Result<_> {
7         //~^ ERROR: this enum takes 2 generic arguments but 1 generic argument was supplied
8         //~| ERROR: the placeholder `_` is not allowed within types on item signatures for return types
9         let mut ui = UI {};
10         ui.interact();
11
12         unimplemented!();
13     }
14
15     pub fn interact(&mut self) -> Result<_> {
16         //~^ ERROR: this enum takes 2 generic arguments but 1 generic argument was supplied
17         //~| ERROR: the placeholder `_` is not allowed within types on item signatures for return types
18         unimplemented!();
19     }
20 }
21
22 fn main() {}