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/resolve/issue-21221-4.rs

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

16 lines
259 B
Rust
Raw Normal View History

Show candidates for names not in scope This commit adds functionality that allows the name resolution pass to search for entities (traits/types/enums/structs) by name, in order to show recommendations along with the errors. For now, only E0405 and E0412 have suggestions attached, as per the request in bug #21221, but it's likely other errors can also benefit from the ability to generate suggestions.
2016-02-14 02:47:27 +01:00
// testing whether the lookup mechanism picks up types
// defined in the outside crate
//@ aux-build:issue-21221-4.rs
extern crate issue_21221_4;
struct Foo;
impl T for Foo {}
Merge cfail and ui tests into ui tests
2017-11-20 13:13:27 +01:00
//~^ ERROR cannot find trait `T`
Show candidates for names not in scope This commit adds functionality that allows the name resolution pass to search for entities (traits/types/enums/structs) by name, in order to show recommendations along with the errors. For now, only E0405 and E0412 have suggestions attached, as per the request in bug #21221, but it's likely other errors can also benefit from the ability to generate suggestions.
2016-02-14 02:47:27 +01:00
fn main() {
println!("Hello, world!");
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 5034ms 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