]> git.lizzy.rs Git - rust.git/blob - src/test/ui/sized-owned-pointer.rs
Rollup merge of #105419 - YC:issue-41731, r=petrochenkov
[rust.git] / src / test / ui / sized-owned-pointer.rs
1 // run-pass
2
3 #![allow(dead_code)]
4 // Possibly-dynamic size of typaram should be cleared at pointer boundary.
5
6
7 // pretty-expanded FIXME #23616
8
9 fn bar<T: Sized>() { }
10 fn foo<T>() { bar::<Box<T>>() }
11 pub fn main() { }