Sign in
◑
Theme
rust
/
rust
/
e4932e024a866fcfbe472a554e26e39e00a6bc4f
/
.
/
tests
/
ui
/
view-types
/
tuple-structs.rs
blob: 04dd222cef98d7aa61608c83fb486713da249dfc [
file
]
//@ run-pass
#![
feature
(
view_types
)]
#![
allow
(
unused
)]
use
std
::
view
::
view_type
;
struct
Pair
(
usize
,
u32
);
impl
Pair
{
fn
foo
(
self
:
&
mut
view_type
!(
Pair
.{
0
,
1
}))
{}
fn
bar
(
_pair
:
&
mut
view_type
!(
Pair
.{
0
,
1
}))
{}
}
fn
main
()
{}