Skip to content

Commit

Permalink
add 3 ices
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Sep 23, 2022
1 parent b23dfaa commit 2526894
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ices/101852.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pub fn ice(
x: impl AsRef<str>,
) -> impl IntoIterator<Item = ()> {
vec![].append(&mut ice(x.as_ref()));

Vec::new()
}

fn main() {
}
19 changes: 19 additions & 0 deletions ices/101940.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pub trait Trait {
type Fut<'a> where Self: 'a;
fn fun<'a, 'b>(&'a self, x: &'_ mut &'b ()) -> Self::Fut<'a>
where
'b: 'a;
}
impl Trait for () {
type Fut<'a> = impl ::std::future::Future + 'a
where
Self: 'a;
fn fun<'a, 'b>(&'a self, x: &'_ mut &'b ()) -> Self::Fut<'a>
where
'b: 'a,
{
async { }
}
}

pub fn main() {}
9 changes: 9 additions & 0 deletions ices/101962.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#![feature(core_intrinsics)]

pub fn wrapping<T: Copy>(a: T, b: T) {
let _z = core::intrinsics::wrapping_mul(a, b);
}

pub fn main() {
wrapping(1,2);
}

0 comments on commit 2526894

Please sign in to comment.