2023-07-27 10:51:02 -05:00
|
|
|
//@ known-bug: #103507
|
|
|
|
|
2024-07-30 08:48:36 -05:00
|
|
|
#![feature(const_trait_impl, const_vec_string_slice)]
|
2022-03-06 20:38:42 -06:00
|
|
|
|
|
|
|
struct Foo<'a> {
|
|
|
|
bar: &'a mut Vec<usize>,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> Foo<'a> {
|
|
|
|
const fn spam(&mut self, baz: &mut Vec<u32>) {
|
|
|
|
self.bar[0] = baz.len();
|
2023-07-27 10:51:02 -05:00
|
|
|
//FIXME ~^ ERROR: cannot call
|
|
|
|
//FIXME ~| ERROR: cannot call
|
|
|
|
//FIXME ~| ERROR: the trait bound
|
2022-03-06 20:38:42 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|