We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fn main() {}
1 parent 0bc2001 commit 85f2ecaCopy full SHA for 85f2eca
compiler/rustc_error_codes/src/error_codes/E0792.md
@@ -39,6 +39,8 @@ type Foo<T> = impl std::fmt::Debug;
39
fn foo<U>() -> Foo<U> {
40
5u32
41
}
42
+
43
+fn main() {}
44
```
45
46
This means that no matter the generic parameter to `foo`,
@@ -57,4 +59,6 @@ type Foo<T: Debug> = impl Debug;
57
59
fn foo<U: Debug>() -> Foo<U> {
58
60
Vec::<U>::new()
61
62
63
64
compiler/rustc_lint/src/opaque_hidden_inferred_bound.rs
@@ -46,6 +46,8 @@ declare_lint! {
/// fn test() -> impl Trait<Assoc = Tait> {
47
/// 42
48
/// }
49
+ ///
50
+ /// fn main() {}
51
/// ```
52
///
53
/// {{produces}}
0 commit comments