]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/const-generic-default-wont-borrowck.stderr
Auto merge of #106503 - cjgillot:remap-nofilter, r=oli-obk
[rust.git] / tests / ui / const-generics / const-generic-default-wont-borrowck.stderr
1 error[E0381]: used binding `s` isn't initialized
2   --> $DIR/const-generic-default-wont-borrowck.rs:2:26
3    |
4 LL |     let s: &'static str; s.len()
5    |         -                ^^^^^^^ `*s` used here but it isn't initialized
6    |         |
7    |         binding declared here but left uninitialized
8    |
9 help: consider assigning a value
10    |
11 LL |     let s: &'static str = todo!(); s.len()
12    |                         +++++++++
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0381`.