1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
14 fn bah(_: Option<Self>) { }
27 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
28 impl Foo for *const BarTy {
32 Foo::bah(None::<*const BarTy>);
36 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
37 impl<'a> Foo for &'a BarTy {
43 Foo::bah(None::<&BarTy>);
48 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
49 impl<'a> Foo for &'a mut BarTy {
55 Foo::bah(None::<&mut BarTy>);
60 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
61 impl Foo for Box<BarTy> {
64 Foo::bah(None::<Box<BarTy>>);
68 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
69 impl Foo for *const int {
72 Foo::bah(None::<*const int>);
76 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
77 impl<'a> Foo for &'a int {
80 Foo::bah(None::<&int>);
84 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
85 impl<'a> Foo for &'a mut int {
88 Foo::bah(None::<&mut int>);
92 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
93 impl Foo for Box<int> {
96 Foo::bah(None::<Box<int>>);