mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
12 lines
224 B
Rust
12 lines
224 B
Rust
//@ run-pass
|
|
#![feature(ptr_metadata)]
|
|
// Address issue #112737 -- ICE with dyn Pointee
|
|
extern crate core;
|
|
use core::ptr::Pointee;
|
|
|
|
fn raw_pointer_in(_: &dyn Pointee<Metadata = ()>) {}
|
|
|
|
fn main() {
|
|
raw_pointer_in(&42)
|
|
}
|