blob: 3bc5697a1a68906c4c5ae866de9f542c843e8409 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
pub fn foo<T>() -> &'static isize {
if false {
static a: isize = 4;
return &a;
} else {
static a: isize = 5;
return &a;
}
}
pub fn bar() -> &'static isize {
foo::<isize>()
}
|