Sign in
rust
/
rust
/
5a96067a65dfd15fdd13b2d5b6f01884ed30d00a
/
.
/
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
()
{}