// Copyright 2015 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. #![allow(dead_code)] #![feature(recover)] use std::panic::{UnwindSafe, AssertUnwindSafe}; use std::cell::RefCell; use std::sync::{Mutex, RwLock, Arc}; use std::rc::Rc; struct Foo { a: i32 } fn assert() {} fn main() { assert::(); assert::<&i32>(); assert::<*mut i32>(); assert::<*const i32>(); assert::(); assert::(); assert::<&str>(); assert::(); assert::<&Foo>(); assert::>(); assert::(); assert::>(); assert::>(); assert::>(); assert::>(); assert::<&Mutex>(); assert::<&RwLock>(); assert::>(); assert::>(); fn bar() { assert::>(); assert::>(); } fn baz() { assert::>(); assert::>(); assert::>(); assert::>(); assert::<&AssertUnwindSafe>(); assert::>>(); assert::>>(); } }