mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 22:13:39 +00:00
Fix doctest
This commit is contained in:
parent
8ad536f2d1
commit
695a1349fa
2 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ use crate::assist_context::{AssistContext, Assists};
|
|||
//
|
||||
// fn main() -> () {
|
||||
// let a = 3;
|
||||
// let b: B = B::from(a);
|
||||
// let b: B = <B>::from(a);
|
||||
// }
|
||||
// ```
|
||||
pub(crate) fn into_to_qualified_from(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option<()> {
|
||||
|
|
|
@ -1812,7 +1812,7 @@ impl From<i32> for B {
|
|||
|
||||
fn main() -> () {
|
||||
let a = 3;
|
||||
let b: B = B::from(a);
|
||||
let b: B = <B>::from(a);
|
||||
}
|
||||
"#####,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue