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
12c32e944d3dbadb6a114a6e0bc51b065b4f42c1
rust/src/test/compile-fail/import-from-missing.rs

10 lines
149 B
Rust
Raw Normal View History

Update error messages and un-xfail
2012-11-15 14:36:38 -08:00
// error-pattern:failed to resolve import
test: "import" -> "use"
2012-09-05 12:32:05 -07:00
use spam::{ham, eggs};
Allow multiple imports in a single statement Like so: import foo::{bar, baz}; Issue #817
2011-08-16 15:21:30 -07:00
mod spam {
Install new pub/priv/export rules as defaults, old rules accessible under #[legacy_exports];
2012-09-21 18:10:45 -07:00
#[legacy_exports];
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 ham() { }
Allow multiple imports in a single statement Like so: import foo::{bar, baz}; Issue #817
2011-08-16 15:21:30 -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() { ham(); eggs(); }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 391ms Template: 2ms
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