mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			364 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			364 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![feature(generic_const_exprs)]
 | |
| #![allow(incomplete_features)]
 | |
| 
 | |
| impl EntriesBuffer {
 | |
|     fn a(&self) -> impl Iterator {
 | |
|         self.0.iter_mut() //~ ERROR: cannot borrow `*self.0` as mutable, as it is behind a `&` reference
 | |
|     }
 | |
| }
 | |
| 
 | |
| struct EntriesBuffer(Box<[[u8; HashesEntryLEN]; 5]>);
 | |
| //~^ ERROR: cannot find value `HashesEntryLEN` in this scope
 | |
| 
 | |
| fn main() {}
 | 
