mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			695 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			695 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
error[E0277]: `()` doesn't implement `std::fmt::Display`
 | 
						|
  --> $DIR/doesnt-satisfy.rs:8:17
 | 
						|
   |
 | 
						|
LL |     fn bar() -> () {}
 | 
						|
   |                 ^^ `()` cannot be formatted with the default formatter
 | 
						|
   |
 | 
						|
   = help: the trait `std::fmt::Display` is not implemented for `()`
 | 
						|
   = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
 | 
						|
note: required by a bound in `Foo::{opaque#0}`
 | 
						|
  --> $DIR/doesnt-satisfy.rs:4:22
 | 
						|
   |
 | 
						|
LL |     fn bar() -> impl std::fmt::Display;
 | 
						|
   |                      ^^^^^^^^^^^^^^^^^ required by this bound in `Foo::{opaque#0}`
 | 
						|
 | 
						|
error: aborting due to previous error
 | 
						|
 | 
						|
For more information about this error, try `rustc --explain E0277`.
 |