Sign in
◑
Theme
rust
/
rust
/
0ed70b1908dcb32fd6dd97bf0ce8dc25ecee502f
/
.
/
tests
/
ui
/
resolve
/
resolve-fn-item-reference.rs
blob: ee5095d21b3ca970917435887845e5a18f561739 [
file
]
//! Regression test for <https://github.com/rust-lang/rust/issues/24322>.
//! Referenced fn items ICE'd on path resolution.
struct
B
;
impl
B
{
fn
func
(&
self
)
->
u32
{
42
}
}
fn
main
()
{
let
x
:
&
fn
(&
B
)
->
u32
=
&
B
::
func
;
//~ ERROR mismatched types
}