aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/tests.rs
diff options
context:
space:
mode:
authorMarcus Klaas de Vries <[email protected]>2019-01-14 19:56:14 +0000
committerMarcus Klaas de Vries <[email protected]>2019-01-14 19:56:14 +0000
commitd67eabb512a08a451a649c7f20e4e9ae1860a8a0 (patch)
tree99c5fb5004f3fb7a6b0855033855c439675cc0ff /crates/ra_hir/src/ty/tests.rs
parent26893487722d07b3f31a6addfc88e6948620989c (diff)
Fix type inference for raw (byte) strings
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r--crates/ra_hir/src/ty/tests.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs
index cbdb2a4b7..8aacb1a7f 100644
--- a/crates/ra_hir/src/ty/tests.rs
+++ b/crates/ra_hir/src/ty/tests.rs
@@ -135,7 +135,7 @@ fn test(a: &u32, b: &mut u32, c: *const u32, d: *mut u32) {
135#[test] 135#[test]
136fn infer_literals() { 136fn infer_literals() {
137 check_inference( 137 check_inference(
138 r#" 138 r##"
139fn test() { 139fn test() {
140 5i32; 140 5i32;
141 "hello"; 141 "hello";
@@ -146,8 +146,14 @@ fn test() {
146 5000; 146 5000;
147 false; 147 false;
148 true; 148 true;
149} 149 r#"
150"#, 150 //! doc
151 // non-doc
152 mod foo {}
153 "#;
154 br#"yolo"#;
155}
156"##,
151 "literals.txt", 157 "literals.txt",
152 ); 158 );
153} 159}