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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
103 B
Rust
Raw Normal View History

Change method lookup to require invariance for mutable references Fixes #17033. Fixes #15965.
2014-09-09 02:15:30 +02:00
fn main() {
Update tests with the new error messages
2014-10-24 21:17:50 +02:00
return
Three random test cases that seem to produce more errors now. I've not dug deeply into what is going on here, although the errors ARE somewhat surprising.
2014-12-18 22:17:16 -05:00
{ return () }
inform type annotations
2018-02-14 11:06:08 +08:00
//~^ ERROR type annotations needed [E0282]
Implement the `Fn` trait for bare fn pointers in the compiler rather than doing it using hard-coded impls. This means that it works also for more complex fn types involving bound regions. Fixes #19126.
2014-12-01 09:23:40 -05:00
()
Update tests with the new error messages
2014-10-24 21:17:50 +02:00
;
Change method lookup to require invariance for mutable references Fixes #17033. Fixes #15965.
2014-09-09 02:15:30 +02:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 5464ms 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