We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d45b07 commit df75ef1Copy full SHA for df75ef1
src/test/ui/mir/issue-99852.rs
@@ -0,0 +1,16 @@
1
+// check-pass
2
+// compile-flags: -C opt-level=3
3
+
4
+#![crate_type = "lib"]
5
6
+fn lambda<T: Default>() -> T {
7
+ if true && let Some(bar) = transform() {
8
+ bar
9
+ } else {
10
+ T::default()
11
+ }
12
+}
13
14
+fn transform<T>() -> Option<T> {
15
+ None
16
src/test/ui/mir/issue-99866.rs
@@ -0,0 +1,27 @@
+pub trait Backend {
+ type DescriptorSetLayout;
+pub struct Back;
+impl Backend for Back {
+ type DescriptorSetLayout = u32;
+pub struct HalSetLayouts {
17
+ vertex_layout: <Back as Backend>::DescriptorSetLayout,
18
19
20
+impl HalSetLayouts {
21
+ pub fn iter<DSL>(self) -> DSL
22
+ where
23
+ Back: Backend<DescriptorSetLayout = DSL>,
24
+ {
25
+ self.vertex_layout
26
27
0 commit comments