summary refs log tree commit diff
path: root/tests/ui/dyn-star/thin.rs
blob: 6df70f560dec93c1c4d5fce5a6746c4f803ec6e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@check-pass
//@revisions: old next
//@[next] compile-flags: -Znext-solver

#![feature(ptr_metadata)]
#![feature(dyn_star)]
//~^ WARN the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes

use std::fmt::Debug;
use std::ptr::Thin;

fn check_thin<T: ?Sized + Thin>() {}

fn main() {
    check_thin::<dyn* Debug>();
}