Skip to content

Commit

Permalink
add 2 ices
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Jun 3, 2022
1 parent 24bd796 commit 41514c8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
27 changes: 27 additions & 0 deletions ices/97695.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/sh

rustc -Zmir-opt-level=3 --emit=mir - << EOF
pub trait Associate {
type Associated;
}
pub struct Wrap<'a> {
pub field: &'a i32,
}
pub trait Create<T> {
fn create() -> Self;
}
pub fn oh_no<'a, T>()
where
Wrap<'a>: Associate,
<Wrap<'a> as Associate>::Associated: Create<T>,
{
<Wrap<'a> as Associate>::Associated::create();
}
pub fn main() {}
EOF
9 changes: 9 additions & 0 deletions ices/97698.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use std::ffi::CString;

impl Lock {
pub fn new() {
if () == -1 {
CString::new();
}
}
}

0 comments on commit 41514c8

Please sign in to comment.