mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
fixes broken tests
This commit is contained in:
parent
7b952cb1aa
commit
c3ad945d9b
@ -308,7 +308,7 @@ fn test() {
|
||||
pub mod foo {
|
||||
pub struct S;
|
||||
impl S {
|
||||
fn thing() -> i128 { 0 }
|
||||
pub fn thing() -> i128 { 0 }
|
||||
}
|
||||
}
|
||||
"#,
|
||||
|
@ -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
|
||||
```
|
||||
"#]],
|
||||
"#]],
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user