Sign in
rust
/
rust
/
244fc326f23b58bc9db6bd985c59b80098ff14c1
/
.
/
tests
/
ui
/
self
/
self-in-method-body-resolves.rs
blob: 636922cd87ce6d181fe2297434e6ac929c1a2b36 [
file
] [
log
] [
blame
]
//! regression test for <https://github.com/rust-lang/rust/issues/24389>
//@ check-pass
#![
allow
(
dead_code
)]
struct
Foo
;
impl
Foo
{
fn
new
()
->
Self
{
Foo
}
fn
bar
()
{
Self
::
new
();
}
}
fn
main
()
{}