We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c384b4 commit 6bf0f52Copy full SHA for 6bf0f52
coretests/tests/pin.rs
@@ -34,6 +34,9 @@ fn pin_const() {
34
}
35
36
pin_mut_const();
37
+
38
+ // Check that we accept a Rust 2024 $expr.
39
+ std::pin::pin!(const { 1 });
40
41
42
#[allow(unused)]
@@ -83,14 +86,11 @@ mod pin_coerce_unsized {
83
86
84
87
85
88
#[test]
-fn spans_2021() {
- // Check that we accept a Rust 2024 $expr.
- std::pin::pin!(const { 1 });
89
-
+fn temp_lifetime() {
90
// Check that temporary lifetimes work as in Rust 2021.
91
+ // Regression test for https://github.com/rust-lang/rust/issues/138596
92
match std::pin::pin!(foo(&mut 0)) {
- _f => {}
93
+ _ => {}
94
95
+ async fn foo(_: &mut usize) {}
96
-async fn foo(_: &mut usize) {}
0 commit comments