]> git.lizzy.rs Git - rust.git/blob - tests/ui/sized-owned-pointer.rs
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[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() { }