mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Unindent the test
This commit is contained in:
parent
7ae1309ac5
commit
497fc232e7
1 changed files with 22 additions and 22 deletions
|
@ -262,29 +262,29 @@ fn main() {
|
||||||
fn does_not_propose_names_in_scope() {
|
fn does_not_propose_names_in_scope() {
|
||||||
check(
|
check(
|
||||||
r#"
|
r#"
|
||||||
//- /lib.rs crate:dep
|
//- /lib.rs crate:dep
|
||||||
pub mod test_mod {
|
pub mod test_mod {
|
||||||
pub trait TestTrait {
|
pub trait TestTrait {
|
||||||
const SPECIAL_CONST: u8;
|
const SPECIAL_CONST: u8;
|
||||||
type HumbleType;
|
type HumbleType;
|
||||||
fn weird_function();
|
fn weird_function();
|
||||||
fn random_method(&self);
|
fn random_method(&self);
|
||||||
}
|
}
|
||||||
pub struct TestStruct {}
|
pub struct TestStruct {}
|
||||||
impl TestTrait for TestStruct {
|
impl TestTrait for TestStruct {
|
||||||
const SPECIAL_CONST: u8 = 42;
|
const SPECIAL_CONST: u8 = 42;
|
||||||
type HumbleType = ();
|
type HumbleType = ();
|
||||||
fn weird_function() {}
|
fn weird_function() {}
|
||||||
fn random_method(&self) {}
|
fn random_method(&self) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//- /main.rs crate:main deps:dep
|
//- /main.rs crate:main deps:dep
|
||||||
use dep::test_mod::TestStruct;
|
use dep::test_mod::TestStruct;
|
||||||
fn main() {
|
fn main() {
|
||||||
TestSt$0
|
TestSt$0
|
||||||
}
|
}
|
||||||
"#,
|
"#,
|
||||||
expect![[r#""#]],
|
expect![[r#""#]],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue