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 24bd796 commit 41514c8Copy full SHA for 41514c8
ices/97695.sh
@@ -0,0 +1,27 @@
1
+#!/bin/sh
2
+
3
+rustc -Zmir-opt-level=3 --emit=mir - << EOF
4
5
+pub trait Associate {
6
+ type Associated;
7
+}
8
9
+pub struct Wrap<'a> {
10
+ pub field: &'a i32,
11
12
13
+pub trait Create<T> {
14
+ fn create() -> Self;
15
16
17
+pub fn oh_no<'a, T>()
18
+where
19
+ Wrap<'a>: Associate,
20
+ <Wrap<'a> as Associate>::Associated: Create<T>,
21
+{
22
+ <Wrap<'a> as Associate>::Associated::create();
23
24
25
+pub fn main() {}
26
27
+EOF
ices/97698.rs
@@ -0,0 +1,9 @@
+use std::ffi::CString;
+impl Lock {
+ pub fn new() {
+ if () == -1 {
+ CString::new();
+ }
0 commit comments