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 mod foo {
pub struct S; pub struct S;
impl 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( check(
r#" r#"
mod wrapper { mod wrapper {
struct Thing { x: u32 } pub struct Thing { x: u32 }
impl Thing { impl Thing {
fn new() -> Thing { Thing { x: 0 } } pub fn new() -> Thing { Thing { x: 0 } }
} }
} }
@ -840,7 +840,7 @@ fn main() { let foo_test = wrapper::Thing::new$0(); }
``` ```
```rust ```rust
fn new() -> Thing pub fn new() -> Thing
``` ```
"#]], "#]],
) )