fixes broken tests

This commit is contained in:
zhoufan 2021-12-14 15:57:58 +08:00
parent 7b952cb1aa
commit c3ad945d9b
2 changed files with 5 additions and 5 deletions

View File

@ -308,7 +308,7 @@ fn test() {
pub mod foo {
pub struct S;
impl S {
fn thing() -> i128 { 0 }
pub fn thing() -> i128 { 0 }
}
}
"#,

View File

@ -823,10 +823,10 @@ fn test_hover_infer_associated_method_exact() {
check(
r#"
mod wrapper {
struct Thing { x: u32 }
pub struct Thing { x: u32 }
impl Thing {
fn new() -> Thing { Thing { x: 0 } }
pub fn new() -> Thing { Thing { x: 0 } }
}
}
@ -840,9 +840,9 @@ fn main() { let foo_test = wrapper::Thing::new$0(); }
```
```rust
fn new() -> Thing
pub fn new() -> Thing
```
"#]],
"#]],
)
}