about summary refs log tree commit diff
path: root/tests/ui/sized-borrowed-pointer.rs
blob: bd213c067db5d673cab37e8428b865d09dabe3c9 (plain)
1
2
3
4
5
6
7
8
9
//@ run-pass

#![allow(dead_code)]
// Possibly-dynamic size of typaram should be cleared at pointer boundary.


fn bar<T: Sized>() { }
fn foo<T>() { bar::<&T>() }
pub fn main() { }