Skip to content

Commit 4b63f58

Browse files
committed
fixed lifetimes/static-lifetime-inference-bracketed.rs
1 parent ddaf11d commit 4b63f58

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: tests/ui/lifetimes/static-lifetime-inference-bracketed.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -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.
1+
//! Regression test to check that literal expressions in a struct field can be coerced to the
2+
//! expected field type, including when being evaluated in a bracked expression
43
//!
5-
//! Issue: https://github.com/rust-lang/rust/issues/31260
4+
//! Issue: <https://github.com/rust-lang/rust/issues/31260>
65
76
//@ check-pass
87

0 commit comments

Comments
 (0)