We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddaf11d commit 4b63f58Copy full SHA for 4b63f58
tests/ui/lifetimes/static-lifetime-inference-bracketed.rs
@@ -1,8 +1,7 @@
1
-//! Regression test to check that a `'static` lifetime is properly inferred for fields of a `struct`
2
-//! when the lifetime is unspecified in the declaration. Also checks that the lifetime can be
3
-//! inferred when the field is evaluated in it's own scope.
+//! Regression test to check that literal expressions in a struct field can be coerced to the
+//! expected field type, including when being evaluated in a bracked expression
4
//!
5
-//! Issue: https://github.com/rust-lang/rust/issues/31260
+//! Issue: <https://github.com/rust-lang/rust/issues/31260>
6
7
//@ check-pass
8
0 commit comments