mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			990 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			990 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
error[E0261]: use of undeclared lifetime name `'a`
 | 
						|
  --> $DIR/bad-item-bound-within-rpitit-2.rs:4:20
 | 
						|
   |
 | 
						|
LL |     fn bar<'other: 'a>() -> impl Sized + 'a {}
 | 
						|
   |                    ^^ undeclared lifetime
 | 
						|
   |
 | 
						|
help: consider introducing lifetime `'a` here
 | 
						|
   |
 | 
						|
LL |     fn bar<'a, 'other: 'a>() -> impl Sized + 'a {}
 | 
						|
   |            +++
 | 
						|
help: consider introducing lifetime `'a` here
 | 
						|
   |
 | 
						|
LL | trait Foo<'a> {
 | 
						|
   |          ++++
 | 
						|
 | 
						|
error[E0261]: use of undeclared lifetime name `'a`
 | 
						|
  --> $DIR/bad-item-bound-within-rpitit-2.rs:4:42
 | 
						|
   |
 | 
						|
LL |     fn bar<'other: 'a>() -> impl Sized + 'a {}
 | 
						|
   |                                          ^^ undeclared lifetime
 | 
						|
   |
 | 
						|
help: consider introducing lifetime `'a` here
 | 
						|
   |
 | 
						|
LL |     fn bar<'a, 'other: 'a>() -> impl Sized + 'a {}
 | 
						|
   |            +++
 | 
						|
help: consider introducing lifetime `'a` here
 | 
						|
   |
 | 
						|
LL | trait Foo<'a> {
 | 
						|
   |          ++++
 | 
						|
 | 
						|
error: aborting due to 2 previous errors
 | 
						|
 | 
						|
For more information about this error, try `rustc --explain E0261`.
 |