diff options
Diffstat (limited to 'crates/hir_ty/src/tests/simple.rs')
-rw-r--r-- | crates/hir_ty/src/tests/simple.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/crates/hir_ty/src/tests/simple.rs b/crates/hir_ty/src/tests/simple.rs index 108ff3179..b4bcc6d95 100644 --- a/crates/hir_ty/src/tests/simple.rs +++ b/crates/hir_ty/src/tests/simple.rs | |||
@@ -60,7 +60,7 @@ enum Nat { Succ(Self), Demo(Nat), Zero } | |||
60 | fn test() { | 60 | fn test() { |
61 | let foo: Nat = Nat::Zero; | 61 | let foo: Nat = Nat::Zero; |
62 | if let Nat::Succ(x) = foo { | 62 | if let Nat::Succ(x) = foo { |
63 | x | 63 | x; |
64 | } //^ Nat | 64 | } //^ Nat |
65 | } | 65 | } |
66 | "#, | 66 | "#, |
@@ -138,7 +138,7 @@ enum Option<T> { Some(T), None } | |||
138 | fn test() { | 138 | fn test() { |
139 | let foo: Option<f32> = None; | 139 | let foo: Option<f32> = None; |
140 | while let Option::Some(x) = foo { | 140 | while let Option::Some(x) = foo { |
141 | x | 141 | x; |
142 | } //^ f32 | 142 | } //^ f32 |
143 | } | 143 | } |
144 | "#, | 144 | "#, |
@@ -1745,7 +1745,7 @@ impl i32 { fn foo(&self) -> Foo { Foo } } | |||
1745 | fn main() { | 1745 | fn main() { |
1746 | let x: i32 = i32; | 1746 | let x: i32 = i32; |
1747 | x.foo(); | 1747 | x.foo(); |
1748 | //^ Foo | 1748 | //^^^^^^^ Foo |
1749 | }"#, | 1749 | }"#, |
1750 | ); | 1750 | ); |
1751 | } | 1751 | } |
@@ -1763,7 +1763,7 @@ fn main() { | |||
1763 | fn inner() {} | 1763 | fn inner() {} |
1764 | let x: i32 = i32; | 1764 | let x: i32 = i32; |
1765 | x.foo(); | 1765 | x.foo(); |
1766 | //^ Foo | 1766 | //^^^^^^^ Foo |
1767 | }"#, | 1767 | }"#, |
1768 | ); | 1768 | ); |
1769 | } | 1769 | } |
@@ -1781,7 +1781,7 @@ fn foo() -> &'static str { "" } | |||
1781 | 1781 | ||
1782 | fn main() { | 1782 | fn main() { |
1783 | foo(); | 1783 | foo(); |
1784 | //^ &str | 1784 | //^^^^^ &str |
1785 | }"#, | 1785 | }"#, |
1786 | ); | 1786 | ); |
1787 | } | 1787 | } |
@@ -1799,7 +1799,7 @@ fn foo() -> &'static str { "" } | |||
1799 | 1799 | ||
1800 | fn main() { | 1800 | fn main() { |
1801 | str::foo(); | 1801 | str::foo(); |
1802 | //^ u32 | 1802 | //^^^^^^^^^^ u32 |
1803 | }"#, | 1803 | }"#, |
1804 | ); | 1804 | ); |
1805 | } | 1805 | } |
@@ -1825,9 +1825,9 @@ mod d { | |||
1825 | 1825 | ||
1826 | fn main() { | 1826 | fn main() { |
1827 | d::foo(); | 1827 | d::foo(); |
1828 | //^ u8 | 1828 | //^^^^^^^^ u8 |
1829 | d::foo{a:0}; | 1829 | d::foo{a:0}; |
1830 | //^ u8 | 1830 | //^^^^^^^^^^^ foo |
1831 | }"#, | 1831 | }"#, |
1832 | ); | 1832 | ); |
1833 | } | 1833 | } |
@@ -2677,7 +2677,7 @@ fn prelude_2015() { | |||
2677 | //- /main.rs edition:2015 crate:main deps:core | 2677 | //- /main.rs edition:2015 crate:main deps:core |
2678 | fn f() { | 2678 | fn f() { |
2679 | Rust; | 2679 | Rust; |
2680 | //^ Rust | 2680 | //^^^^ Rust |
2681 | } | 2681 | } |
2682 | 2682 | ||
2683 | //- /core.rs crate:core | 2683 | //- /core.rs crate:core |