We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5895e03 commit 634f912Copy full SHA for 634f912
tests/ui/cast/ptr-to-ptr-principalless.rs
@@ -0,0 +1,8 @@
1
+//@ check-pass
2
+// Test cases involving principal-less traits (dyn Send without a primary trait).
3
+
4
+fn lifetime_cast_send<'a, 'b>(a: *mut (dyn Send + 'a)) -> *mut (dyn Send + 'b) {
5
+ a as _
6
+}
7
8
+fn main() {}
0 commit comments