summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/ice-with-dyn-pointee.rs
blob: 9b3b9c8cddf19e3b377e1eca13f20103b0ff53aa (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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)
}