]> git.lizzy.rs Git - rust.git/blob - tests/ui/sized-owned-pointer.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / 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() { }