]> git.lizzy.rs Git - rust.git/blob - src/test/ui/sized-borrowed-pointer.rs
Merge commit 'e228f0c16ea8c34794a6285bf57aab627c26b147' into libgccjit-codegen
[rust.git] / src / test / ui / sized-borrowed-pointer.rs
1 // run-pass
2
3 #![allow(dead_code)]
4 // Possibly-dynamic size of typaram should be cleared at pointer boundary.
5
6 // pretty-expanded FIXME #23616
7
8 fn bar<T: Sized>() { }
9 fn foo<T>() { bar::<&T>() }
10 pub fn main() { }