blob: 54875eba0cf1091558731eca9dfe7b7d6136460e [file]
#![feature(view_types, view_type_macro)]
//~^ ERROR unknown feature `view_type_macro`
#![allow(unused)]
use std::view::view_type;
//~^ ERROR unresolved import
struct Pair(usize, u32);
impl Pair {
fn foo(self: &mut view_type!(Pair.{ 0, 1 })) {}
//~^ ERROR invalid `self` parameter type
fn bar(_pair: &mut view_type!(Pair.{ 0, 1 })) {}
}
fn main() {}