aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/project/type-mismatch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/project/type-mismatch.rs')
-rw-r--r--tests/ui/project/type-mismatch.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/ui/project/type-mismatch.rs b/tests/ui/project/type-mismatch.rs
index 41a70eb..0e40c83 100644
--- a/tests/ui/project/type-mismatch.rs
+++ b/tests/ui/project/type-mismatch.rs
@@ -1,3 +1,4 @@
+#![allow(deprecated)]
#![feature(proc_macro_hygiene, stmt_expr_attributes)]
use pin_project::{pin_project, project};
@@ -36,9 +37,6 @@ fn type_mismatch() {
}
}
-//~ ERROR mismatched types
-// span is lost.
-// Refs: https://github.com/rust-lang/rust/issues/43081
fn type_mismatch_span_issue() {
#[pin_project]
enum Enum<A, B, C, D> {
@@ -67,7 +65,7 @@ fn type_mismatch_span_issue() {
let _x: &mut Pin<&mut i32> = field1;
let _y: &mut &mut i32 = field2;
}
- None => {}
+ None => {} //~ ERROR mismatched types
}
}