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
58e901b6fd1163172149fd422565523b17eed5f0
rust/tests/ui/ret-non-nil.rs

8 lines
146 B
Rust
Raw Normal View History

Add error explanations for E0066 and E0069. This also updates the error messages for both. For E0066, it removes mention of "managed heap", which was removed in 8a91d33. For E0069, I just tweaked the wording to make it a bit more explicit.
2015-05-11 23:36:54 -05:00
// error-pattern: `return;` in a function whose return type is not `()`
Use span_err instead of err. Fixes issue #444.
2011-06-01 17:15:02 -07:00
Convert ret to return
2012-08-01 17:30:05 -07:00
fn f() { return; }
Use span_err instead of err. Fixes issue #444.
2011-06-01 17:15:02 -07:00
Update compile fail tests to use isize.
2015-01-08 21:54:35 +11:00
fn g() -> isize { return; }
Use span_err instead of err. Fixes issue #444.
2011-06-01 17:15:02 -07:00
Reformat This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-19 15:16:48 -07:00
fn main() { f(); g(); }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 4985ms Template: 3ms
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