Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 77029d8

Browse files
authored
Merge pull request #337 from JohnTitor/add-ices
Add 3 ICEs
2 parents 04f0b41 + a454e94 commit 77029d8

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

ices/71212.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#![feature(const_mut_refs)]
2+
3+
const FOO: &mut i32 = &mut 4;
4+
5+
fn main() {
6+
*FOO = 2;
7+
}

ices/71297.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
async fn a(x | s: String) {}
2+
3+
fn main() {}

ices/71316.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
rustc -Zunleash-the-miri-inside-of-you - << END
4+
5+
#![feature(const_raw_ptr_deref)]
6+
#![feature(const_mut_refs)]
7+
#![allow(const_err)]
8+
9+
use std::cell::UnsafeCell;
10+
11+
// make sure we do not just intern this as mutable
12+
const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
13+
14+
fn main() {}
15+
16+
END

0 commit comments

Comments
 (0)