mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 13:33:31 +00:00
Fix tests by using primitive rather than String.
This commit is contained in:
parent
e7abf34c19
commit
a65ca20210
1 changed files with 8 additions and 8 deletions
|
@ -315,25 +315,25 @@ fn main() {
|
|||
fn test_add_reference_to_macro_call() {
|
||||
check_fix(
|
||||
r#"
|
||||
macro_rules! hello_world {
|
||||
macro_rules! thousand {
|
||||
() => {
|
||||
"Hello World".to_string()
|
||||
1000_u64
|
||||
};
|
||||
}
|
||||
fn test(foo: &String) {}
|
||||
fn test(foo: &u64) {}
|
||||
fn main() {
|
||||
test($0hello_world!());
|
||||
test($0thousand!());
|
||||
}
|
||||
"#,
|
||||
r#"
|
||||
macro_rules! hello_world {
|
||||
macro_rules! thousand {
|
||||
() => {
|
||||
"Hello World".to_string()
|
||||
1000_u64
|
||||
};
|
||||
}
|
||||
fn test(foo: &String) {}
|
||||
fn test(foo: &u64) {}
|
||||
fn main() {
|
||||
test(&hello_world!());
|
||||
test(&thousand!());
|
||||
}
|
||||
"#,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue