Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/nll/issue-55394.rs

14 lines
158 B
Rust
Raw Normal View History

Fix ICE and find correct return span. This commit fixes an ICE and determines the correct return span in cases with a method implemented on a struct with an an elided lifetime.
2018-11-09 15:39:32 +01:00
struct Bar;
struct Foo<'s> {
bar: &'s mut Bar,
}
impl Foo<'_> {
fn new(bar: &mut Bar) -> Self {
Remove feature(nll) when compare mode is sufficient
2019-04-07 16:07:36 +01:00
Foo { bar } //~ERROR
Fix ICE and find correct return span. This commit fixes an ICE and determines the correct return span in cases with a method implemented on a struct with an an elided lifetime.
2018-11-09 15:39:32 +01:00
}
}
fn main() { }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3299ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API