Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
explicit-tail-calls
/
ctfe-arg-good-borrow.rs
blob: a34482a3527258ae28ee8cb8c91defb05809ddda [
file
] [
log
] [
blame
]
//@ check-pass
#![
expect
(
incomplete_features
)]
#![
feature
(
explicit_tail_calls
)]
pub
const
fn
test
(
x
:
&
Type
)
{
const
fn
takes_borrow
(
_
:
&
Type
)
{}
become takes_borrow
(
x
);
}
pub
struct
Type
;
fn
main
()
{}