mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Fix tests
This commit is contained in:
parent
f34b2469bd
commit
2c364f6e5a
5 changed files with 11 additions and 10 deletions
|
@ -415,7 +415,6 @@ fn foo(a: lib::A) { a.$0 }
|
|||
fn test_local_impls() {
|
||||
check(
|
||||
r#"
|
||||
//- /lib.rs crate:lib
|
||||
pub struct A {}
|
||||
mod m {
|
||||
impl super::A {
|
||||
|
@ -427,9 +426,8 @@ mod m {
|
|||
}
|
||||
}
|
||||
}
|
||||
//- /main.rs crate:main deps:lib
|
||||
fn foo(a: lib::A) {
|
||||
impl lib::A {
|
||||
fn foo(a: A) {
|
||||
impl A {
|
||||
fn local_method(&self) {}
|
||||
}
|
||||
a.$0
|
||||
|
|
|
@ -614,6 +614,7 @@ fn f(u: U) {
|
|||
|
||||
check_empty(
|
||||
r#"
|
||||
#![rustc_coherence_is_core]
|
||||
#[lang = "u32"]
|
||||
impl u32 {
|
||||
pub const MIN: Self = 0;
|
||||
|
|
|
@ -608,6 +608,7 @@ fn f() {
|
|||
}
|
||||
|
||||
//- /core.rs crate:core
|
||||
#![rustc_coherence_is_core]
|
||||
#[lang = "u8"]
|
||||
impl u8 {
|
||||
pub const MAX: Self = 255;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue