Closure containing a declaration cannot be used with result builder 'ViewBuilder'

What can I do about this error ? Closure containing a declaration cannot be used with result builder 'ViewBuilder'  

  struct ContentView: View {   //  <- error is here

.....

}

Please show enough code to tell what you can do about this error.

If you have something on that line move it down one line.

Again, the error appears :

Closure containing a declaration cannot be used with result builder 'ViewBuilder' :


struct ContentView_Previews: PreviewProvider {     //   <-  error Closure containing a declaration cannot be used with result builder 'ViewBuilder' and   Struct 'ViewBuilder' declared here (SwiftUI.ViewBuilder)

    static var previews: some View {

        ContentView()

    }
}

    static var previews: some View {

        ContentView()

    }

       }

Closure containing a declaration cannot be used with result builder 'ViewBuilder'
 
 
Q