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.
12 // pretty-expanded FIXME #23616
17 fn bah(_: Option<Self>) { }
30 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
31 impl Foo for *const BarTy {
35 Foo::bah(None::<*const BarTy>);
39 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
40 impl<'a> Foo for &'a BarTy {
46 Foo::bah(None::<&BarTy>);
51 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
52 impl<'a> Foo for &'a mut BarTy {
58 Foo::bah(None::<&mut BarTy>);
63 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
64 impl Foo for Box<BarTy> {
67 Foo::bah(None::<Box<BarTy>>);
71 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
72 impl Foo for *const isize {
75 Foo::bah(None::<*const isize>);
79 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
80 impl<'a> Foo for &'a isize {
83 Foo::bah(None::<&isize>);
87 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
88 impl<'a> Foo for &'a mut isize {
91 Foo::bah(None::<&mut isize>);
95 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
96 impl Foo for Box<isize> {
99 Foo::bah(None::<Box<isize>>);