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
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/traits/impl-for-module.rs

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

12 lines
94 B
Rust
Raw Normal View History

Fix issue #8763 * added case & better error message for "impl trait for module" * used better way to print the module * switched from //error-pattern to //~ ERROR * added compile-fail test trait-impl-for-module.rs * revised compile-fail test trait-or-new-type-instead (the error message for the modified test is still unclear, but that's a different bug) * added FIXME to trait-or-new-type-instead
2013-11-13 21:29:37 -06:00
mod a {
}
trait A {
}
resolve: Rewrite resolve_pattern
2016-06-03 23:15:00 +03:00
impl A for a { //~ ERROR expected type, found module
Fix issue #8763 * added case & better error message for "impl trait for module" * used better way to print the module * switched from //error-pattern to //~ ERROR * added compile-fail test trait-impl-for-module.rs * revised compile-fail test trait-or-new-type-instead (the error message for the modified test is still unclear, but that's a different bug) * added FIXME to trait-or-new-type-instead
2013-11-13 21:29:37 -06:00
}
fn main() {
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 6755ms 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