]>
git.proxmox.com Git - rustc.git/blob - src/test/run-pass/issue-14254.rs
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.
11 // pretty-expanded FIXME #23616
16 fn bah(_
: Option
<Self>) { }
29 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
30 impl Foo
for *const BarTy
{
34 Foo
::bah(None
::<*const BarTy
>);
38 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
39 impl<'a
> Foo
for &'a BarTy
{
45 Foo
::bah(None
::<&BarTy
>);
50 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
51 impl<'a
> Foo
for &'a
mut BarTy
{
57 Foo
::bah(None
::<&mut BarTy
>);
62 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
63 impl Foo
for Box
<BarTy
> {
66 Foo
::bah(None
::<Box
<BarTy
>>);
70 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
71 impl Foo
for *const isize {
74 Foo
::bah(None
::<*const isize>);
78 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
79 impl<'a
> Foo
for &'a
isize {
82 Foo
::bah(None
::<&isize>);
86 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
87 impl<'a
> Foo
for &'a
mut isize {
90 Foo
::bah(None
::<&mut isize>);
94 // If these fail, it's necessary to update rustc_resolve and the cfail tests.
95 impl Foo
for Box
<isize> {
98 Foo
::bah(None
::<Box
<isize>>);