]> git.lizzy.rs Git - rust.git/blob - tests/ui/dyn-star/check-size-at-cast-polymorphic.rs
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / ui / dyn-star / check-size-at-cast-polymorphic.rs
1 // check-pass
2
3 #![feature(dyn_star)]
4 #![allow(incomplete_features)]
5
6 use std::fmt::Debug;
7
8 fn dyn_debug(_: (dyn* Debug + '_)) {
9
10 }
11
12 fn polymorphic<T: Debug>(t: &T) {
13     dyn_debug(t);
14 }
15
16 fn main() {}