]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-ret.rs
Rollup merge of #59822 - GuillaumeGomez:fix-dark-theme-css, r=Manishearth
[rust.git] / src / test / ui / regions / regions-ret.rs
1 fn id<T>(x: T) -> T { x }
2
3 fn f(_x: &isize) -> &isize {
4     return &id(3); //~ ERROR cannot return reference to temporary value
5 }
6
7 fn main() {
8 }