Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
b3827e4f3728b77bd3e60587487ebfc3cc8d901b
rust/tests/ui/error-codes/E0311.rs

14 lines
200 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-rustfix
Fix invalid syntax in impl Trait parameter type suggestions for E0311
2022-12-26 15:43:31 -08:00
#![allow(warnings)]
Review updates: simpler MWE and docs - use the simpler minimum working example from the review - add an alterate "fix" that helps make the cause of the error more clear - attempt to add an improved description of what is going on
2022-08-26 15:01:49 -04:00
fn no_restriction<T>(x: &()) -> &() {
with_restriction::<T>(x) //~ ERROR E0311
Add long description and test for E0311 Adds a long description and unit test for the E0311 compiler error.
2022-08-19 06:27:31 -04:00
}
Review updates: simpler MWE and docs - use the simpler minimum working example from the review - add an alterate "fix" that helps make the cause of the error more clear - attempt to add an improved description of what is going on
2022-08-26 15:01:49 -04:00
fn with_restriction<'a, T: 'a>(x: &'a ()) -> &'a () {
x
Add long description and test for E0311 Adds a long description and unit test for the E0311 compiler error.
2022-08-19 06:27:31 -04:00
}
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 867ms 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